[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] help on attribute name
Greetings! The following XSL construct fails-- <xsl:call-template name="taggen" > <xsl:with-param name="id" select='T35' /> <xsl:with-param name="value" select='D' /> </xsl:call-template> <xsl:template name="taggen"> <xsl:param name="id" /> <xsl:param name="value" /> <xsl:element name="fixtag"> <xsl:attribute name="$id"><xsl:value-of select="$value"/></xsl:attribute> </xsl:element> </xsl:template> -- Can you help. The reported problem is Illegal value: $id used for QNAME attribute: name in <xsl:attribute name="$id"><xsl:value-of select="$value"/></xsl:attribute> I am able to do <xsl:attribute name="T11"> <xsl:value-of select="@id"/></xsl:attribute> But I would like to come up with attribute names more dynamically. Considered attribute set but that is not dynamic either. TIA for suggestions. -- AD
|
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
|