Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:40 AM
Albretch
Guest
 
Posts: n/a
Default handling commonality in similar XSD schemas



I have a number of very similar XSD templates, only different by a few attributes.

The common parts of the schema I would like to keep together as a type and then bag the extra attributes apart.

The extra atributes would be 'required' in some templates but not necessary in other ones

I have tried a number of things that don't seem to compile

Any hints or examples?

Thanks




  #2  
Old July 20th, 2005, 09:40 AM
Martin Honnen
Guest
 
Posts: n/a
Default Re: handling commonality in similar XSD schemas



Albretch wrote:
[color=blue]
>
> I have a number of very similar XSD templates, only different by a
> few attributes.
>
> The common parts of the schema I would like to keep together as a
> type and then bag the extra attributes apart.
>
> The extra atributes would be 'required' in some templates but not
> necessary in other ones
>
> I have tried a number of things that don't seem to compile
>
> Any hints or examples?[/color]

You can compose schemas with xs:include and xs:import and you can create
base types and then extend types, see
<http://www.w3.org/TR/xmlschema-0/#abstract>

--

Martin Honnen
http://JavaScript.FAQTs.com/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles