Project

Profile

Help

Bug #2311

closed

Attributes starting with an underscore (_) are removed

Added by Jens Gabe about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
2015-02-06
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

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" />
Actions #1

Updated by O'Neil Delpratt about 9 years ago

  • 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.

Actions #2

Updated by Michael Kay about 9 years ago

  • 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.

Actions #3

Updated by O'Neil Delpratt about 9 years ago

  • 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.

Actions #4

Updated by O'Neil Delpratt over 8 years ago

  • 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