Project

Profile

Help

Support #2087

closed

Selecting an attribute with a namespace qualifier doesn't work in an XSL

Added by Andrew Seales almost 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2014-06-11
Due date:
% Done:

0%

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

Description

If you have an XML document such as:

<root xmlna:ns="http://namespace">
  <a ns:attr="value">
</root>

and an XSL that does:

<xsl:stylesheet [...] xmlns:ns="http://namespace">
  <xsl:value-of select="/root/a/@ns:attr" />
</xsl:stylesheet>

The value that is output is blank.

If the XSL is changed to @/root/a/attr@(so no namespace) then the correct value is output.

Shouldn't the XPath select require the namespace on the attribute?


Files

saxontext.zip (3.99 KB) saxontext.zip Andrew Seales, 2014-06-13 14:53

Please register to edit this issue

Also available in: Atom PDF