xsl-list
[Top] [All Lists]

[xsl] XSLT to convert to type substitution

2007-12-02 15:52:59
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>