[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Sorry for not being elaborate,
Actually what i want to do is that i want to get the value of <payWeekDay> from a jsp form and the use that to change the value of the node in the xml means the new value comes from an external source its not constant.
> I want to know what is the best way to change the value of nodes using
> xalan for example
> one.xml
> -------
> <person>
> <firstName>Jax</firstName>
> <lastName>Live</lastName>
> <payWeekDay>Wednesday</payWeekDay>
> <person>
>
> and if in the above file i want to change the value of <payWeekDay> from
> "wednesday" to "Monday" what is the best way to do it.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Changing the value of nodes
Subject: Re: [xsl] Changing the value of nodes From: "Java XML" <jaxlive@xxxxxxxxxxx> Date: Thu, 19 Apr 2001 10:39:01 -0400 |
Sorry for not being elaborate,
Actually what i want to do is that i want to get the value of <payWeekDay> from a jsp form and the use that to change the value of the node in the xml means the new value comes from an external source its not constant.
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Changing the value of nodes Date: Thu, 19 Apr 2001 16:27:22 +0200 (MET DST)
> I want to know what is the best way to change the value of nodes using
> xalan for example
> one.xml
> -------
> <person>
> <firstName>Jax</firstName>
> <lastName>Live</lastName>
> <payWeekDay>Wednesday</payWeekDay>
> <person>
>
> and if in the above file i want to change the value of <payWeekDay> from
> "wednesday" to "Monday" what is the best way to do it.
- take the copy stlesheet (have a look at the XSLT spec or the FAQ) - write a template which catches payWeekDay elements and do the transformation you need
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Changing the value of nod, Oliver Becker | Thread | RE: [xsl] Changing the value of nod, Michael Kay |
RE: [xsl] ANN MSXML3-SP1/MSXML4, Michael Kay | Date | Re: AW: [xsl] for-each with include, David Carlisle |
Month |