I have an xml message that is in the older schema (xsd) format. My new schema is exactly the same but I embedded an element inside the older one. For example :
My old schema had an element :
<exclude> MyRestriction </exclude>
but my new schema is like this :
<exclude> <restriction> MyRestriction </restriction> </exclude>
and the entire message is the same as before. Last time I used to do a copy-of but now
I need to have a template that copy-of everything but move the value of the exclude to the restriction tag. Anyone can help me please ?
Thanks
You could use a template to match the text in an exclude template
This way will keep any other child elements within exclude should they be required.
So, given the following XSLT
When applied to the following XML
The following is output