This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Changing the value of nodes


>       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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]