Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Maintaining a subset of a schema

From: Andy Den Tandt <andydt@-------.-->
To: xmlschema-dev@--.---
Date: 8/2/2007 4:30:00 PM
I have an application which produces an XML log/report for which I have 
a schema. These XML files contain lots of info/detail.
The schema is both given to 3rd parties who consume this file and used 
in testing tools to ensure that the XML files are completely valid/as 
intended.

Now, I need to create a smaller XML file which is a subset of the 
original one but without a series of elements and attributes.
The question now is how to create (and maintain) a strict and readable 
schema for this smaller/subset. I want to enforce that all these 
elements/attributes are present or none at all.

In theory, I could annotate the full schema and try to generate a second 
schema from it but I can't imagine how to determine if some element 
needs a custom type because some sub-element's type has changed as well. 
Or I would have to manually tag the parent elements.

I wonder what the best solution is. Others must have struggled with the 
same problem and I don't want to reinvent the wheel ;-) If this isn't 
the right place to ask such a question, please direct me to resources, 
another forum, etc.

E.g. how to create a strict combined schema's for
<a u='0'>
    <b v='1'>
        <c w='2'/>
    </b>
</a>

and the same but without the a/b@v attribute
<a u='0'>
    <b>
        <c w='2'/>
    </b>
</a>

The c-element can be shared. It's obvious that b is a separate type. But 
the type for a also needs to change!

Kind regards,

Andy Den Tandt

============================================
Andy Den Tandt
Technical Product Manager
Enfocus - an Artwork Systems Brand
http://www.enfocus.com

Artwork Systems N.V.
Artwork Toren
Bellevue 5/1101, B-9050 Gent, Belgium
T: +32 9 265 84 11
F: +32 9 265 84 10
============================================



From boris@k... Fri Aug 03 07:32:44 2007
Received: from maggie.w3.org ([193.51.208.68])


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent