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

Subject: Re: [xsl] XSLT 1.0 question on keys for namespace nodes
From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Wed, 1 Sep 2010 22:19:32 +0200
> >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@xxxxxxxxxxxxxxxxxxxx>
To:         xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread