[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

help on attribute name

Subject: help on attribute name
From: Raman Kannan <rk2153@xxxxxxxxx>
Date: Mon, 23 May 2005 13:38:56 -0400
used for qname attribute
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.