Hello,
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="${config.params.dir}/@{servername}/jboss-log4j.xml"
out="check.xml"
style="${xsl-check.dir}/check_jboss-log4j.xsl"
classpathref="xslt.classpath"
force="true">
<factory>
<attribute name="http://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://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 ?
Thanks,
Guillaume.