[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] calling template with name passed in a variable
Hi
Can I call a template passing its name dynamically (by means of select or variable)? I'd like to do something like this <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}
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|