xsl-list
[Top] [All Lists]

[xsl] XSLT 1.0 question on keys for namespace nodes

2010-09-01 10:08:40

Hello,

the XSLT 1.0 spec says about the "match" attribute of "xsl:key" [1]:
  The match attribute is a Pattern; , ...

In the definition of "Pattern" [2] the StepPattern
[5] StepPattern ::= ChildOrAttributeAxisSpecifier NodeTest Predicate*
[6] ChildOrAttributeAxisSpecifier ::= AbbreviatedAxisSpecifier
                                      | ('child' | 'attribute') '::'

indicates that only child and attribute axis are allowed.


So <xsl:key name="..." match="/|node()|@*" use="..."/> is the broadest
possible match covering the following six (of seven) node types:
root, element, text, comment, processing-instruction, attribute

Is it correct that there is no "trick" available for applying keys
to namespace nodes?


[1] http://www.w3.org/TR/xslt#key
[2] http://www.w3.org/TR/xslt#NT-Pattern

Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>