"Not supported" message when trying to set attribute source_location from ant
-----------------------------------------------------------------------------
Key: XALANJ-2299
URL: http://issues.apache.org/jira/browse/XALANJ-2299
Project: XalanJ2
Type: Bug
Components: Xalan-extensions
Versions: 2.7
Environment: Apache Ant 1.6.5
Java 1.5.0_06
Reporter: Guillaume Nobiron
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]