xsl-list
[Top] [All Lists]

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

2003-04-04 02:52:43
Yes you can use the document() function. In my current work I collect these
variables into separate xsl file which I normally include to the main xsl 
file.

<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?
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



<Prev in Thread] Current Thread [Next in Thread>