This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
To get back to original root after using document() (was: RE: My favourite XSLT enhancement requests)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: To get back to original root after using document() (was: RE: My favourite XSLT enhancement requests)
- From: Linda van den Brink <lvdbrink at baan dot nl>
- Date: Mon, 18 Sep 2000 10:53:07 +0200
- Reply-To: xsl-list at mulberrytech dot com
> 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