|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl transform question
Hi Gourav,
> I want it to be like :
> value="<xsl:value-of select="name"/>"
> because then only it would be a valid xsl.
This isn't valid XSLT. You want something like:
value="{name}"
instead -- using an attribute value template to insert the value of
the <name> element into the 'value' attribute you're creating.
You can generate this attribute using:
<xsl:attribute name="value">{name}</xsl:attribute>
or, if the value attribute is on a <foo> element, using:
<foo value="{{name}}">...</foo>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








