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

Re: Loading an external file of index

Subject: Re: Loading an external file of index
From: David_Marston@xxxxxxxxx
Date: Thu, 22 Jun 2000 16:47:44 -0400
Re: Loading an external file of index
Pierre Attar's other question:
>By the way, an other subconsequent question is how is it possible, for
>debugging purpose, to output the content of a key table ? Something like
>print(key("mysetofkeys')) ... ?

It depends on whether your table is one-to-one or not. If yours is, then
you can just do a for-each loop over the set of nodes used in defining
the keyspace, and print the "use" and "match" items as you see fit.

If any given key value ("use" value) may point to several nodes, then
you need to assemble a set of unique keys, and for each one, do
<xsl:for-each select="key('mysetofkeys',$thisvalue)> and then value-of
whatever in that node is of interest. (Where $thisvalue stands for each
unique key value in turn, meaning that there is another for-each loop
wrapped around the one shown. See the FAQ discussion of grouping for
more about deriving a set of unique values.)

Furthermore, several different keys could point to the same node. if
you want to display the keyspace in a way that shows that relationship,
then you probably start with a for-each over the nodes identified in
the "match" attribute of xsl:key, but how you find the keys depends
on your structure. I think there are too many possibilities to go into
them all here.
.................David Marston


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


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.