Subject: Re: [xsl] How to replace the value for an attribute From: Gary Frederick <gary.frederick@xxxxxxxxx> Date: Tue, 29 May 2001 07:16:58 -0500 |
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
[ggf@eeyore test]$ ./runXalan.sh -in elemExample.xml -xsl elemExample.xsl <?xml version="1.0" encoding="UTF-8"?> <input type="hidden" name="id" value="10"/>
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to replace the value , Larry Garfield | Thread | Re: [xsl] How to replace the value , Benjamin Franz |
RE: [xsl] xsl:sort - sorting accord, Chris Bayes | Date | RE: [xsl] xsl:sort - sorting accord, Bryan Tulloch |
Month |