Subject: [xsl] transform fails with param and variable in template at the same time From: Lindsey Simon <lsimon@xxxxxxxxxxxx> Date: Fri, 07 Jul 2006 13:34:09 -0500 |
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: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>
Lindsey Simon lsimon@xxxxxxxxxxxx Key fingerprint = C6A9 B9D9 677E A631 3E7F 43BF 5E2F 77F1 A33C B117 Public Key: http://www.commoner.com/pubkey.asc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting all repeated el, Michael Kay | Thread | RE: [xsl] transform fails with para, Michael Kay |
RE: [xsl] OT: Advice on Oxygen XML , Michael Kay | Date | Re: [xsl] OT: Advice on Oxygen XML , Chad Chelius |
Month |