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

xsl:output method="xml" indent="yes" not working as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.6
    • 2.7
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: Solaris
      Platform: Sun
    • 30622

    Description

      I'm converting an input XML file into an output XML file using 'java
      org.apache.xalan.xslt.Process". Some of the input XML elements are output as
      is, some are modified, and some new ones are introduced via the XSL style sheet
      using xml:element. All elements which are pased through as is or are modified
      appear to be indented as expected. However, elements created via xsl:element do
      not appear to be indented correctly: the opening tag appears to always be
      indented, but all subelements created after that and the closing tag are not
      indented at all.

      This is not inducing any errors downstream; it only makes the file more
      difficult for people to read.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ed.knoll@cosd.fedex.com Ed Knoll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: