[xsl] XSLT to convert to type substitution

Subject: [xsl] XSLT to convert to type substitution
From: Farrukh Najmi <farrukh@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 02 Dec 2007 17:52:18 -0500
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

Current Thread