XalanJ2
  1. XalanJ2
  2. XALANJ-1966

XSL Transformation drops content inside xsl:comment tags.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Serialization
    • Labels:
      None
    • Environment:
      Windows 2000. Xalan 2.6.0

      Description

      With Xalan 2.6.0, when a simple stylesheet, say test.xsl and input xml, say test.xml is used, transformation works fine.

      If simple test.xsl file include or import other stylesheets and imported/included stylesheets import/include more stylesheets, then, transformation works; however, in the final output (html), content inside xsl:comment tags are dropped. I have a big application that produced this problem. I cannot provide a simpler version of the testcase. However, I have resolved the issue by making one minor change in the code. I will provide the patch that resolved my problem.

      1. PatchForApacheCode.txt
        1 kB
        Yash Talwar
      2. patch.1966.txt
        1 kB
        Brian Minchau

        Activity

        Yash Talwar created issue -
        Brian Minchau made changes -
        Field Original Value New Value
        Project AltRMI [ 10101 ] XalanJ2 [ 10584 ]
        Component/s Serialization [ 11325 ]
        Affects Version/s CurrentCVS [ 10863 ]
        Key ARMI-5 XALANJ-1966
        Yash Talwar made changes -
        Attachment PatchForApacheCode.txt [ 17769 ]
        Brian Minchau made changes -
        Attachment patch.1966.txt [ 17846 ]
        Brian Minchau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Brian Minchau made changes -
        Fix Version/s 2.7 [ 11080 ]
        Brian Minchau made changes -
        Affects Version/s 2.7 [ 11080 ]
        Affects Version/s 2.7.1 [ 10863 ]
        Mark Thomas made changes -
        Workflow jira [ 37437 ] Default workflow, editable Closed status [ 12570500 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12570500 ] jira [ 12594560 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Yash Talwar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development