Bug #2311
closed
Attributes starting with an underscore (_) are removed
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Description
If i include an attribute which name starts with an underscore in an element, the attribute is not in the transformed result?
Example:
<xsl:template match="*">
<foo test="bar" _bar="test" />
</xsl:template>
Result in v HE9.6.0.4j (WRONG):
<foo test="bar" />
Result in v HE9.5.1.8j (CORRECT):
<foo test="bar" _bar="test" />
- Found in version changed from HE9.6.0.4j to 9.6
Hi,
This is indeed a bug. Thanks for reporting the issue, which I have managed to reproduce with your example. We will investigate what is happening here and report back to this bug issue.
- Status changed from New to Resolved
- Assignee set to Michael Kay
Thanks for reporting it.
This was a side-effect of the implementation of shadow attributes, a new XSLT 3.0 feature. Attributes starting with "_" should be dropped only if they appear on an element in the XSLT namespace, but the check was not being done properly.
Test case shadow-007 added to W3C test suite. A fix is bing committed on the 9.6 and 9.7 branches.
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.6.0.5
Bug fix applied in the Saxon 9.6.0.5 maintenance release.
- Sprint/Milestone set to 9.6.0.5
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.5 added
Please register to edit this issue
Also available in: Atom
PDF