Subject: Re: Loading an external file of index From: Eric van der Vlist <vdv@xxxxxxxxxxxx> Date: Thu, 22 Jun 2000 12:42:37 +0200 |
Pierre, > So, the question is where do I declare <xsl:key name="mysetofkeys" > match="key" use="@name"/> for being able to fill the table with all keys > from the imported file ? The document function can also be used outside a template (it would be more touchy if the name of the file you want to include depended on a local value)... I haven't tested it since my favorite XSLT processors is lacking key support, but something like : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="no"/> <xsl:key name="mysetofkeys" match="document('../shared/shared.xml')/keybase/key" use="@name"/> .... </xsl:stylesheet > should work from my understanding of the rec. You can also define document('../shared/shared.xml') as a global variable to reuse it in your templates. Hope this helps. Eric -- ------------------------------------------------------------------------ Eric van der Vlist Dyomedea http://dyomedea.com http://xmlfr.org http://4xt.org http://ducotede.com ------------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Loading an external file of index, Pierre Attar | Thread | Re: Loading an external file of ind, Jeni Tennison |
XSLT Documentation (Was: RE: How is, Jeni Tennison | Date | Re: xsl:key, Francis Norton |
Month |