Hi again David (and others, of course)
> - It seems to me, that test2 is empty :-(
It looks that way, which means that the Xpath
/xsl:stylesheet/xsl:variable[(_at_)name='Test']
didn't find your first variable. Was it a child of xsl:stylesheet rather
than (say) xsl:transform or xsl:template?????
It is not a (direct) child of xsl:stylesheet - I but dimly begin to percieve
how the syntax (might) work.
Given the syntax below, what would I write for it to work?
I tried
<xsl:variable name="test2"
select="document('')/xsl:template/xsl:variable[(_at_)name='Test']"/>
and
<xsl:variable name="test2"
select="document('')/xsl:stylesheet/*/xsl:template/xsl:variable[(_at_)name='Test']"/>
but alas both with the same no-result.
<!-- This stylesheets complexity aproximately matches the one I use -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
..
<xsl:template match="/">
..
<xsl:apply-templates select="Temp1"/>
</xsl:template>
<xsl:template match="Temp1">
..
<xsl:apply-templates select="Temp2"/>
</xsl:template>
<xsl:template match="Temp2[Temp2]">
..
<xsl:apply-templates select="Temp2[not(Temp2)]"/>
</xsl:template>
<xsl:template match="Temp2[not(Temp2)]">
<xsl:call-template name="CallTemp"/>
..
</xsl:template>
<xsl:template name="CallTemp">
<!-- All the variable stuff in here -->
</xsl:template>
..
</xsl:stylesheet>
For the solution to work, and even having learned something in the process,
would be great!
Ragulf Pickaxe :-)
_________________________________________________________________
Unlimited Internet access -- and 2 months free! Try MSN.
http://resourcecenter.msn.com/access/plans/2monthsfree.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list