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

troubles designing schema

From: Eddie Kawas <edward.kawas@gmail.com>
Date: Tue, 28 Jun 2005 18:16:03 -0700
To: <xmlschema-dev@w3.org>
Message-ID: <42c1f656.1b273324.3efa.479b@mx.gmail.com>
designing schema

Hi,

I have an XML document that has elements in it that have the
same tagname, but different mandatory values for the
attributes. I am having one heck of a time trying to design
a schema for these types of documents.

An example of the type of xml I am trying to develop a
schema for is below:

<moby:BasicGFFSequenceFeature>
    <moby:multi_key_value_pair
moby:articleName="column9_tag_value" moby:id=""
moby:namespace="">
        <moby:String moby:articleName="value" moby:id=""
moby:namespace=""/>
        <moby:String moby:articleName="key" moby:id=""
moby:namespace=""/>
    </moby:multi_key_value_pair>
    <moby:String moby:articleName="reference" moby:id=""
moby:namespace=""/>
    <moby:String moby:articleName="source" moby:id=""
moby:namespace=""/>
    <moby:String moby:articleName="method" moby:id=""
moby:namespace=""/>
    <moby:Integer moby:articleName="start" moby:id=""
moby:namespace=""/>
    <moby:Integer moby:articleName="stop" moby:id=""
moby:namespace=""/>
    <moby:Float moby:articleName="score" moby:id=""
moby:namespace=""/>
    <moby:String moby:articleName="strand" moby:id=""
moby:namespace=""/>
    <moby:String moby:articleName="frame" moby:id=""
moby:namespace=""/>
    <moby:String moby:articleName="phase" moby:id=""
moby:namespace=""/>
</moby:BasicGFFSequenceFeature>

As you can see, the tagname is repetitive, but the
articleNames, which are fixed, are different. Moreover, the
number of elements is important as well, so you would always
see all of the elements together or not at all.

Can this be done? If so, how? What am I missing?

Thanks way in advance for any insight.

Eddie Kawas
Received on Wednesday, 29 June 2005 02:28:12 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.