Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: The same element in one content model with different type

From: "Michael Kay" <mike@--------.--->
To: "'Michael Stolp'" <Michael.Stolp@----.----------.-->, <xmlschema-dev@--.--->
Date: 11/3/2005 12:09:00 PM
> Hello list.
> 
> I have a problem to write a schema for the following:
> 
> <Bar id="Bar2" original_id="B5" zIndex="1">
> 	<Point posRef="pos2" id="Bar2.pt1" role="start"/>
> 	<Point posRef="pos3" id="Bar2.pt2" role="end"/>
> 	<Point posRef="pos5" id="Bar2.pt3" role="middle1"/>
> </Bar>
> 

Can't be done in XML Schema. All the Point elements within one Bar element
have to have the same type. You either have to change the design (e.g. the
element names), or use a different validation technology.

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



From Mads.Aagaard@s... Mon Nov 07 10:43:09 2


transparent
Print
Mail
Digg
delicious
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