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

Current Thread