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

xsl:key and document()

Subject: xsl:key and document()
From: Denys Duchier <Denys.Duchier@xxxxxxxxxxxx>
Date: 16 Aug 1999 19:05:15 +0200
xsl key with document function
1. the description of xsl:key fails to specify where the nodes that
   are being matched come from.  I assume that they are all the nodes
   in the `primary' source document (does this also include attribute,
   namespace, text and processing instruction nodes?)

2. since the match attribute of xsl:key is a pattern, there does not
   seem to be a way to associate keys with `secondary' source
   documents obtained with the document() function.

   all of the documents that I want to obtain using the document()
   function are really databases of various kinds that would greatly
   benefit from the mechanism offered by xsl:key. (e.g. author
   database, global db for cross document references, db of hilited
   code computed by external tool).

   with templates, it is possible to apply-templates to an explicit
   selection of nodes.  I suggest to provide something similar for

        <xsl:apply-keys select="..."/>

   would add the nodes selected by "..." to the node set being
   considered for matching.  There is a built in rule:

        <xsl:apply-keys select="//node()"/>

   I believe this is a conservative extension, and the explicit
   statement of the built in rule above also clarifies the semantics.


Dr. Denys Duchier			Denys.Duchier@xxxxxxxxxxxx
Forschungsbereich Programmiersysteme	(Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45	http://www.ps.uni-sb.de/~duchier
Postfach 15 11 50			Phone: +49 681 302 5618
66041 Saarbruecken, Germany		Fax:   +49 681 302 5615

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.