XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Sheldon MustardSubject: Transform XSD to another XSD
Author: Sheldon Mustard
Date: 29 Dec 2010 10:19 AM
I have a "master" XSD with numerous elements (some simple, some complex). I'd like to transform/extract it into several smaller XSD that each contain only a subset of the elements based on something, maybe attributes? So for customer ABC extract an XSD that only contains elements A B C but for customer ZZZ extract an XSD that has elements A B D H. And so on.

Is this possible?

Postnext
Ivan PedruzziSubject: Transform XSD to another XSD
Author: Ivan Pedruzzi
Date: 04 Jan 2011 01:40 AM


Hi Sheldon,

The visual schema diagram should allow you to do copy&past of schema definitions, from one schema to another.

In the context menu click Refactoring -> Copy then in the target schema click Refactoring -> Paste

Ivan

Posttop
Sheldon MustardSubject: Transform XSD to another XSD
Author: Sheldon Mustard
Date: 04 Jan 2011 09:14 AM
Thanks, but I need a more XSLT-ish method. In reality the master XSD will have close to a hundred elements, some very complex. A Copy/Paste approach wouldn't be feasible. I was hoping there might be a way using Includes/Imports, maybe adding some kind of flag as an element attribute and filtering on that, etc.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.