|
Subject: RE: Keys across multilple input files From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 2 Jun 2000 15:44:27 +0100 |
> 1. Can I use the xsl:key element to generate keys for CLASS
> elements that are each contained in separate files?
Not in any useful way. The key() function can only be used to find nodes in
the current document.
> I tried the following:
>
> <xsl:for-each select="document('filelist.xml')">
> <xsl:key name="classes" match="class" use="@NAME"/>
> </xsl:for-each>
You're confusing the key definition (<xsl:key>) which is a top-level
element, and the key() function, which is used to retrieve nodes using the
key.
> 2. Can I generate the keys for all CLASS elements in one XSL
> process and save them, so that another XSL process can access these keys?
You could generate an XML document that acts as an index, and reference this
document in a subsequent run using the document() function. But you can't
save the key index per se.
Mike K
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Keys across multilple input fil, Jeni Tennison | Thread | RE: Keys across multilple input fil, Ann Marie Rubin - Su |
| RE: RE: XSLT and databases (was: Yo, Paulo Gaspar | Date | RE: variables in IE5, Kay Michael |
| Month |