[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: grouping and context (?)

Subject: Re: grouping and context (?)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 27 Aug 2004 15:52:17 +0100
Re:  grouping and context (?)
<!-- 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.