Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1966

XSL Transformation drops content inside xsl:comment tags.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: