Possible wrong evaluation of abbreviated XPath in template match
----------------------------------------------------------------
Key: XALANC-679
URL: https://issues.apache.org/jira/browse/XALANC-679
Project: XalanC
Issue Type: Bug
Affects Versions: 1.10
Reporter: Holger Floerke
Using the Stylesheet
"""
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="artikel/*[starts-with(name(),'artikel-')]//titel" >
'<xsl:value-of select="."/>'<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="text()"/>
</xsl:stylesheet>
"""
to transform the xml document
"""
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<artikel>
<artikel-xxx>
<titel>good</titel>
<div>
<titel>good2</titel>
</div>
</artikel-xxx>
</artikel>
</ROOT>
"""
results in
"""
<?xml version="1.0" encoding="UTF-8"?>
'good'
"""
should be
"""
<?xml version="1.0" encoding="UTF-8"?>
'good'
'good2'
"""
The old instant saxon produces the expected output.
Removing the Step "*[starts-with(name(),'artikel-')]" results in the expected
output.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]