Re: [xsl] xsl transform question

Subject: Re: [xsl] xsl transform question
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 17 Dec 2002 11:19:28 +0000
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:


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>



Jeni Tennison

 XSL-List info and archive:

Current Thread