I'm testing the following in my browser - Firefox - and I looked at the
FAQ but I'm not sure why this would fail, so I thought I'd ask the list.
XML:
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="test2.xsl"?>
<root>
<stuff>stuff</stuff>
<thing>thing</thing>
</root>
XSL (test2.xsl):
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method='xml' version='1.0' encoding='UTF-8' indent='no' />
<xsl:template match='/root'>
<xsl:call-template name="testTemplate">
<xsl:with-param name="testParam" select="'testParamVal'" />
</xsl:call-template>
</xsl:template>
<xsl:template name="testTemplate">
<xsl:variable name="testVariable" select="'testVariableVal'" />
<xsl:param name="testParam" />
<results>result is all good</results>
</xsl:template>
</xsl:stylesheet>
If I remove the line: <xsl:variable name="testVariable"
select="'testVariableVal'" /> from the testTemplate, then it works just
fine. Is there some reason one cannot mix param's and variable's ?
Thanks!
--
Lindsey Simon
lsimon(_at_)commoner(_dot_)com
Key fingerprint = C6A9 B9D9 677E A631 3E7F 43BF 5E2F 77F1 A33C B117
Public Key: http://www.commoner.com/pubkey.asc
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--