[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT to convert to type substitution

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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.