Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: change one value in xml transformation

From: twotonetommy@---.--- (-------)
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent