[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] XSLT to convert to type substitution
Dear colleagues,
I have an XML Schema that is being changed to use type substitution
instead of substitutionGroups (element substitution).
I was wondering if any one can share an XSLT sample that would convert
according to examples of old and new document below...
Old XML Instance:
<xx:Objects>
<xx:Element1 ...>
...
</xx:Element1 ...>
<xx:Element2 ...>
...
</xx:Element2 ...>
</xx:Objects>
New XML Syntax:
<xx:Objects>
<xx:Object xsi:type="xx:Element1" ...>
...
</xx:Object ...>
<xx:Object xsi:type="xx:Element2" ...>
...
</xx:Object ...>
</xx:Objects>
Thanks for your help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
|