|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML Schemas : Constraint mecanism on complexType ?
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








