xsl-list
[Top] [All Lists]

RE: doubts: xsl:import and variables

2002-10-29 06:32:14

Can i give any xsl variable inside another xsl tag.

for eg
:
<xsl:import href="$somexslVariable"/>

where somexslVariable is an xsl variable whose value is 
obtained from  xml document


No, you can't do this, because xsl:import is a compile-time construct,
and variables aren't evaluated until run-time.

Usually (this is a FAQ) the answer is to import the other way around -
import the general-purpose stylesheet module from the special-purpose
module.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



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