You should be able to create a seperate XSLT-file, where you declare the variable(s). Let's say that this file is called sharedVariables.xslt, then you can include this file into your other XSLT files like this:
<xsl:include href="/xslt/sharedVariables.xslt"/>
then you'll be able to use the variable(s) declared once in the sharedVariables.xslt in all of the other files that has the file included.
Variable sharing between loaded XSLT file and inline XSLT
Hi,
Is there a way we can share variables between xslt file (loaded on top of the page) and inline xslt which is called in the <umbraco:item> tag?
Regards,
AJ
Hi Allan
You should be able to create a seperate XSLT-file, where you declare the variable(s). Let's say that this file is called sharedVariables.xslt, then you can include this file into your other XSLT files like this:
then you'll be able to use the variable(s) declared once in the sharedVariables.xslt in all of the other files that has the file included.
Does it make sense?
/Kim A
is working on a reply...