[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT 1.0 question on keys for namespace nodes

Subject: Re: XSLT 1.0 question on keys for namespace nodes
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 01 Sep 2010 23:25:36 +0100
Re:  XSLT 1.0 question on keys for namespace nodes
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].


I'm afraid I've rather forgotten exactly what it is you are trying to do - but any stylesheet that touches all the namespace nodes in a document is likely to be very inefficient, because there are so many of them, and because they will probably be materialized only when touched. Indexing all the namespace nodes would be even more inefficient (if it were allowed) because each namespace node would then almost certainly occupy a non-negligible amount of memory.


Michael Kay
Saxonica

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.