[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Changing the value of nodes
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. - 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
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
|