xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 1.0 question on keys for namespace nodes

2010-09-01 15:19:51
Is it correct that there is no "trick" available for applying keys
to namespace nodes?

   http://www.w3.org/TR/xslt#built-in-rule
   There is no pattern that can match a namespace node

I hope this helps.

Thanks.

So it appears that namespace nodes are the only non first class citizens
among the seven node types of the XPath 1.0 data model [1].

All node types including namespace nodes can be passed to generate-id()
function -- would have been nice to be able to get back to all node types
by
  <xsl:key name="nodes-by-genid"
           match="/ | node() | @* | namespace::*"
           use="generate-id()" />

But that is not possible by the spec, so I will have to search for a
workaround for namespace nodes for "pointers for XSLT 1.0", see question
in [2].


[1] http://www.w3.org/TR/xpath/#data-model
[2]
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00366.html


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



From:       "G. Ken Holman" <gkholman(_at_)CraneSoftwrights(_dot_)com>
To:         xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date:       09/01/2010 05:28 PM
Subject:    Re: [xsl] XSLT 1.0 question on keys for namespace nodes



At 2010-09-01 17:08 +0200, Hermann Stamm-Wilbrandt wrote:
Is it correct that there is no "trick" available for applying keys
to namespace nodes?

   http://www.w3.org/TR/xslt#built-in-rule
   There is no pattern that can match a namespace node

I hope this helps.

. . . . . . . . . Ken


--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>