xsl-list
[Top] [All Lists]

Re: xsl transform question

2002-12-17 04:19:28
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



<Prev in Thread] Current Thread [Next in Thread>