Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: problem using document('') to read component XSL problem using document('') to read component XSLTo: NULL Date: 12/7/2007 7:24:00 AM
I would like to define a variable in one component file and the bind variable
in another (all using xsl:include).
For example,
// Rule1.xsl
<xsl:include href="vars.xsl"/>
<xsl:template match="/" rule:ruleId="1">...</>
//vars.xsl
<xsl:variable name="rule" select="document('')//xsl:template/@rule:ruleId"/>
<xsl:variable name="page" select="//page[@rule=$rule]"/>
The problem is that $rule is never defined. I assumed that the document('')
function would apply after all included component files have been loaded into
memory, building the entire XSLT dom tree, but this doesn't appear to be the
case. Any tips?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
