Subject: Re: [xsl] Re: How to add a attribute of XML as a html element attribute using XSLT From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 11 May 2011 10:44:20 +0100 |
Hi all,
I figured it out in the below way.
<xsl:for-each select="ui/textBox"> <input name="lastname" type="text" id="llastname" value=""> <xsl:attribute name="size"> <xsl:value-of select="@size" /> </xsl:attribute> </input> </xsl:for-each>
Thank you. Sanjaya Liyanage
<xsl:for-each select="ui/textBox"> <input name="lastname" type="text" id="llastname" value="" size="{@size}"/> </xsl:for-each>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: How to add a attribute of, Sanjaya Liyanage | Thread | [xsl] Simple xpath expression---chi, Steve Fogel |
[xsl] Re: How to add a attribute of, Sanjaya Liyanage | Date | [xsl] html5 with xQuery, Leo Studer |
Month |