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

schema extension question

From: Daniel Marcus <dmarcus@npg.wustl.edu>
Date: Thu, 19 Apr 2007 17:17:49 -0500
Message-ID: <D137A6563A0D774583072D87B777269E024231BA@nilex01.neuroimage.wustl.edu>
To: <xmlschema-dev@w3.org>
schema extension question
Hi-

 

Hi-

 

My group is designing a schema for neuroimaging.  We're having trouble
tackling what seems like a basic problem.  We'd like to create
containers that have similar content, along these lines:

 

<StudyType1>

            <StudyType1_part1>Some complex content<StudyType1_part1>

            <StudyType1_part2>Different complex
content<StudyType1_part2>

</StudyType1>

<StudyType2>

            <StudyType2_part1> Some complex content <StudyType2_part1>

            <StudyType2_part2> Different complex content
<StudyType2_part2>

</StudyType1>

 

*_part1 derive from the same base type (abstract_part1) and *_part2
derive from a different base type (abstract_part2).  Additionally, we
want to enforce that for each study type, part1 and part2 are matched by
study type (i.e. StudyType1 includes only StudyType1_part* elements).

 

Is there an appropriate XML Schema representation for this?  We've tried
substitution, extension, restriction... Nothing seems to capture this
sort of content.  Any advice would be appreciated.

 

Regards, 

Dan Marcus
Received on Friday, 20 April 2007 07:29:55 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

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-2007 All Rights Reserved.