![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - The same element in one content model with different type [Thread Next] RE: The same element in one content model with different typeTo: "'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 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
