Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.10
-
None
-
None
Description
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.