Re: [xsl] grouping and context (?)

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)"


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:

Current Thread