|
Subject: [xsl] XSLT 1.0 question on keys for namespace nodes From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx> Date: Wed, 1 Sep 2010 17:08:19 +0200 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] select attribute of xsl:v, Praveen Chauhan | Thread | Re: [xsl] XSLT 1.0 question on keys, David Carlisle |
| Re: [xsl] select attribute of xsl:v, pankaj . c | Date | Re: [xsl] XSLT 1.0 question on keys, David Carlisle |
| Month |