Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - change one value in xml transformation [Thread Next] Re: change one value in xml transformationTo: NULL Date: 6/1/2004 5:39:00 AM Thank you. I will try this out twotonetommy@m... (TwoTone) wrote in message news:<de1495b.0405311316.2989bbf0@p...>... > Please help a biginner: > > I have some xml that may not always be in the same format tree. > However, there will always be one element tag that will be within the > xml file. This is "branch". sample xml: > > <test> > <test2> > <branch>red</branch> > <city>blah</city> > <state>MN</state> > </test2> > </test> > > How can I write a simple xsl that will change the value of "red" to > green but still produce an xml file with the same elements and values > for everything else? > The branch should only change to green if the branch value is "red", > not yellow or green etc. > > This xsl should be able to look at any xml tree structure and search > for <branch> and change the value to green > > Thank you | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
