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

To get back to original root after using document() (was: RE

Subject: To get back to original root after using document() (was: RE: My favourite XSLT enhancement requests)
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Mon, 18 Sep 2000 10:53:07 +0200
get back to the root
> If anybody knows how to get back to the original documents once you've
> done apply-templates on a document(), I'd appreciate a hint.  
> Best I've
> been able to come up with is two passes, using RTF->node set to gather
> all the necessary interesting details into one big variable 
> and consult
> that as I go.  Then again, that might give the best performance anyway
> since I'll have to generate index, glossaries, biblio and TOCs on the
> fly anyway. :-/  Multi-document() keys/indices with ability 
> to restrict
> them to node subsets on lookup would be a help.

When I'm using document() I always create a global parameter

<xsl:param name='root' select='/'/>

So that I can always consult it when I want to get back to the original
input document. 

Linda


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.