|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to replace the value for an attribute
Use the <xsl:attribute> tag, that is:
<input type="hidden" name="id">
<xsl:attribute name="value"><xsl:value-of select="@id"'/></xsl:attribute>
</input>
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??.
>
> I want to replace the value 10 in my hidden attribute ( note this is just an
> example i will this id in the fly ONLY).
>
> Can anyone please please help me out.
>
> Thanks
> Srini
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
Larry Garfield
lgarfiel@xxxxxxxxxxxxxxxxxxx
Do you have a PalmOS Organizer? Click here to add me to your address book:
http://signature.coola.com/?lgarfiel@xxxxxxxxxxxxxxxxxxx
-- "If at first you don't succeed, skydiving isn't for you." :-)
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








