| 
 
Subject: Re: [xsl] can a variable hold a node set? From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 12 May 2009 14:47:32 +0100  | 
> Is there a way to copy the value of document('')/*/trans:tr to a
> variable
yes
<xsl:variable name="x" select="document('')/*/trans:tr"/>
which you vcan make a global variable outside your template
then
	<xsl:value-of
select="$x/@str=$str]/*[name()=$toLang]"/>
although document('') is most likely only called once in any case, as
the system will cache it.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] can a variable hold a nod, Michael Kay | Thread | [xsl] xsl:function "complex" return, Frédéric Choubelle | 
| Re: [xsl] xsl:function "complex" re, G. Ken Holman | Date | RE: [xsl] xsl:function "complex" re, Michael Kay | 
| Month |