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

"Not supported" message when trying to set attribute source_location from ant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7
    • None
    • Xalan-extensions
    • None
    • Apache Ant 1.6.5
      Java 1.5.0_06

    Description

      I am trying to set the attribute http://apache.org/xalan/features/source_location with the value true in order to use the lineNumber() function in an xslt stylesheet.

      I call xalan from an ant script:
      <xslt in="${params.dir}/jboss-log4j.xml"
      out="check.xml"
      style="${xsl.dir}/check_jboss-log4j.xsl"
      classpathref="xslt.classpath"
      force="true">
      <factory>
      <attribute name="http://xml.apache.org/xalan/features/source_location" value="true"/>
      <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
      </factory>
      </xslt>

      The "optimize" attribute is recognized (I know true is the default) but when I add the line with for source-location, the following error is returned by xalan:
      Not supported: http://xml.apache.org/xalan/features/source_location

      I am using the latest version of Xalan (2.7.0). I ran a stylesheet that output the result of xalan:checkEnvironment to be sure :
      <item key="version.xalan2_2">Xalan Java 2.7.0</item>
      <item key="version.xalan1">not-present</item>

      Is there a new way to enable the SourceLocator ? I also tried with the documented uri http://apache.org/xalan/features/source_location with no success.

      Attachments

        1. xslt.zip
          3 kB
          Guillaume Nobiron

        Activity

          People

            ytalwar@ca.ibm.com Yash Talwar
            gnobiron Guillaume Nobiron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: