Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Repeating elements with fixed attribute values

From: "Michael Kay" <mike@--------.--->
To: "'King, Jeffrey \(Mission Systems\)'" <Jeff.King@---.--->, <xmlschema-dev@--.--->
Date: 1/5/2008 4:10:00 PM
> However, I am 
> wondering that if XML Schema 1.0 does not support it, then 
> maybe it's trying to tell me it's not good approach.  Are 
> there any reasons (other than XML Schema 1.0 does not support 
> it) why using the design I presented below is poor?

One can't say that something is poor design without knowing the design
objectives.

One of the main reasons for using what I call "meta-level markup" is that it
allows you to have highly variable data within the constraints of a fixed
schema. For example, you can have a wide variety of documents of the form

<table name="xyz">
<headings>
  <column>a</column>
  <column>b</column>
</headings>
<row>
  <cell>1</cell>
  <cell>2</cell>
</row>
<row>
  <cell>10</cell>
  <cell>20</cell>
</row>

and they all have the same schema; whereas if you use conventional markup

<xyzs>
  <xyz><a>1</a><b>2</b></xyz>
  <xyz><a>10</a><b>20</b></xyz>

then each document needs its own schema.

You seem to be trying to use meta-level markup together with a
document-specific schema, and that's not a combination that works especially
well.

Michael Kay
http://www.saxonica.com/  
  


From Jeff.King@n... Mon Jan 07 12:54:57 2008
Received: from lisa.w3.org ([128.30.5


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