[xsl] applying templates to all child elements except two specific ones

Subject: [xsl] applying templates to all child elements except two specific ones
From: Ram UGroups <ram_ugroups@xxxxxxxxx>
Date: Thu, 5 Dec 2002 15:41:24 -0800 (PST)
Hello,

I do have an element in my input XML file which has a
nested structure with lots of other elements. If the
context element is called <element1>, I need to
process all the child elements of <element1> by
changing the case of their data, leaving two specific
child elements <child1> and <child2>.

Eg:

<someroot>
<element1>
<child1>first child<child1>
<name>
<firstname>John</firstname>
<lastname>Doe</lastname>
</name>
<address>
<street>555 First Stree</street>
<city>some city</city>
<state>some state</state>
<child2>random</child2>
</address>
</element1>
<otherelements/>
</someroot>

So data of all the elements between <element1> tags
should be changed to a different case except the data
in the elements <child1> and <child2>.

Any help would be appreciated.

Thanks.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread