This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using attribute values in html conversion
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 2 Oct 2002 11:13:30 +0100
- Subject: RE: [xsl] Using attribute values in html conversion
- Reply-to: xsl-list at lists dot mulberrytech dot com
> The first idea that came to mind would be something of the sort:
> <input type="text" name=<xsl:apply-templates
> select="@name"/> maxlength=<xsl:templates select="@maxLength"/> >
>
Look up "attribute value templates"; or if you really want to use
template rules to process the attributes, write:
<input type="text">
<xsl:attribute name="name">
<xsl:apply-templates select="@name"/>
</xsl:attribute>
<xsl:attribute name="maxlength">
<xsl:apply-templates select="@maxLength"/>
</xsl:attribute>
</input>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list