This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

To get back to original root after using document() (was: RE: My favourite XSLT enhancement requests)



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]