Subject: Re: [xsl] grouping and context (?) From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 27 Aug 2004 15:52:17 +0100 |
<!-- since we're now working with the mods source, the only way I can see to get back to the biblioref code is to use a key again; unfortunately doesn't work correctly ** --> <xsl:variable name="citekey" select="key('citekey', @ID)" /> key() (as in xslt1) returns nodes only from the current document (where temporary trees generated in xsl:variable count as new documents) the solution is as in xslt1 save a variable holding a node in teh original document before you go off somewhere else <xsl:variable name="orig" select="/"/> then when you need to go back there use (in xslt2) select="$orig/key('citekey', current()/@ID)" David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] grouping and context (?), Bruce D'Arcus | Thread | Re: [xsl] grouping and context (?), Bruce D'Arcus |
[xsl] grouping and context (?), Bruce D'Arcus | Date | [xsl] Problems using of XML tags in, Chris Ward |
Month |