Re: [xsl] get the xsl:variable in an other xsl?

Subject: Re: [xsl] get the xsl:variable in an other xsl?
From: Jarkko.Moilanen@xxxxxx
Date: Fri, 4 Apr 2003 13:24:33 +0300
| >
| > <xsl:variable name="UpperBackGroundImg"
| > select="document('images.xml')/xslt/NotunsignedImages/upbg"/>
| >
| > Now in the main xsl file i can call $UpperBackGroundImg and get the value
| of
| > upbg element from images.xml.
| 
| Hi,
| 
| thats a great idea. Thank you.
| But There is no /xslt/NotunsignedImages/upbg in my XML-file. Does he add
| the path
| automatically?

It is not set automatically. Replace it with your own XPath expression. 

<xsl:variable name="YourVariableName"
 select="document('YourXML.xml')/your/XPath"/>

Cheers,
Jarkko

| I tried it with this paht, an then this one:
| /xslt/NotunsignedImages/my_variable or
| /xslt/myvariable or /xslt/myvariable/upbg. But nothing worked.
| How can I find out the right path?
| 
| 
| Greets
| John
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 
| 


***************************************************
* Jarkko Moilanen                                 *
* Project Researcher, ITCM (www.itcm.org)         *
* Profound XML technology Expert                  *
* University of Tampere                           *
* Hypermedia Laboratory                           *
***************************************************

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


Current Thread