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

XML Schemas : Constraint mecanism on complexType ?

  • From: Bruno Chatel <bcha@c...>
  • To: xml-dev@l...
  • Date: Thu, 23 Nov 2000 12:44:28 +0100

mecanism
Hello,

The confrontation of my experience with DTD and the new features
available with XML Schemas shows me that a very interesting step
is to be done. This point of view concerns particulary the possibility
to specify in the data model contrainsts on content (simple types and
facets mecanism) [but i appreciate the type modeling mecanism too ;-)].

Usually in XML applications (and previously in SGML applications),
we need to control the document more precisely than according to
a possible structure : this functionality must then be developed in
a specific module (dependant of the application, and then implying
many different mecanisms and development languages because
integrated in a larger project). With XML Schemas, the way to specify
contrainsts is now in a model (independant of the general project 
environment). Very interesting.... But, incompleted.
Indeed, with the current specifications, we are not able to define
contrainsts on structures (except usual constraints on element order,
element occurs, ect...). In fact, I need a mecanism allowing me to
declare something like "If the left sibling (with GI T1) of the parent node
of the curent node has an attribute named CONTEXT and attribute value 
is ACTIVE, then the first child of the current node must have a empty
content".
The only way to do this today is to code it in an applicative (project dependant)
program (or module).  It would be very good if we may write this
outside of a specific (and personnal) module.
Do you think that this functionnality is too complex for a modeling mecanism ?
May I expect such kind of functionality in future Schema evolutions ?
Thanks for your ideas about this.

-- bruno--
----------------------------------------
Bruno Chatel
Tel : (+33)[0] 4 96 11 14 57
Email : bcha@c...
http://www.chadocs.com
----------------------------------------



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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