Subject: [xsl] calling template with name passed in a variable From: Piotr Dobrogost <pd@xxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 18 Dec 2009 01:07:07 +0100 |
<xsl:template name="MyTypeX"> (...) </xsl:template>
<xsl:template name="MyTypeY"> (...) </xsl:template>
<xsl:param name="InPlaceTypesList" as="element()*"> <type>MyTypeX</type> <type>MyTypeY</type> </xsl:param>
<xsl:template match="xsd:element[@type=$InPlaceTypesList]"> <xsl:call-template name="@type"/> // <-- error line </xsl:template>
Error at xsl:call-template on line 135 column 38 of xsd2perl.xsl: XTSE0020: Invalid QName {@type}
Regards Piotr Dobrogost
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] the "!--" tag, Hermann Stamm-Wilbra | Thread | RE: [xsl] calling template with nam, Michael Kay |
RE: [xsl] param vs context for pass, Piotr Dobrogost | Date | RE: [xsl] calling template with nam, Michael Kay |
Month |