This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to replace the value for an attribute
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to replace the value for an attribute
- From: Benjamin Franz <snowhare at nihongo dot org>
- Date: Tue, 29 May 2001 07:29:27 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, 29 May 2001, Sri ni wrote:
> Team,
>
> I have a xml file which is like this
>
> <Message id='10' value='one'/>
>
> i have a xsl file which has to take this value of this attribute id and to
> replace with it for an hidden value.
>
> <input type='hidden' name='id' value='<xsl:value-of select="@id"'/>>
>
> But i am getting a transform exception how shall i achieve the same??.
>
Try
<input type='hidden' name='id' value='{@id}'/>
instead.
--
Benjamin Franz
"Premature optimization is the root of all evil in programming."
---C.A.R. Hoare
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list