Subject: Re: [xsl] can a variable hold a node set? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 12 May 2009 09:42:49 -0400 |
I made a template for replacing strings with translated value using the lookup table. The lookup table is included in the template, so I can access it with document('')
But since there usually over 10 strings that have to be translated on a single page, I think it's not efficient to call document('') 10 times.
Is there a way to copy the value of document('')/*/trans:tr to a variable and then access that variable 10 times? Can a variable hold the node set?
Would this make sense?
If yes, then how can I change this template?
-- XSLT/XSL-FO/XQuery hands-on training - Los Angeles, USA 2009-06-08 Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] can a variable hold a nod, Martin Honnen | Thread | RE: [xsl] can a variable hold a nod, Michael Kay |
Re: [xsl] can a variable hold a nod, Martin Honnen | Date | Re: [xsl] Error when params are in , David Carlisle |
Month |