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

Xalan specific Transformer properties not fully documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.1
    • None
    • Documentation
    • None

    Description

      The Xalan specific output properties are documented at
      http://xml.apache.org/xalan-j/usagepatterns.html#outputprops

      Indeed one can over-ride such properties by defining them in an <xsl:output...> element, e.g.
      <xsl:output indent="yes" />
      and one can set them via a JAXP API, e.g.
      Transfomer.setOutputProperty("indent", "yes");

      The page mentions how to set similar, but Xalan-J specific properties, e.g.
      <xsl:output indent="yes" xalan:indent-amount="4" />
      where the prefix xalan maps to the URI "http://xml.apache.org/xalan"

      However the page does not document that a Xalan specific property can be set via JAXP, e.g.
      Transfomer.setOutputProperty("

      {http://xml.apache.org/xalan}

      indent-amount", "4");

      I presume that this is a supported way to set a Xalan specific property and that it is just missing from the page. It is not documented, but is it supported?

      Attachments

        Activity

          People

            Unassigned Unassigned
            minchau@ca.ibm.com Brian Minchau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: