[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Is this constraint expressible in XML Schema?
There's a fine line between a deficiency, and something that is out-of-scope. :) Someone once told me, when I asked him about using RELAX NG to cover this type of requirement, that (as I recall) "One should not expect too much from a single schema standard" (Hint: his initials are the same as mine;). W3C Schema version 2.0 is in process, with - I have a hunch - something on the way about mid-year-ish (just my hunch, I am not involved in the effort). So you might want to check the W3C public archives for that, to see if it's on the list. Kind Regards, Joseph Chiusano Booz Allen Hamilton Strategy and Technology Consultants to the World > -----Original Message----- > From: Kenneth Stephen [mailto:marvin.the.paranoid@g...] > Sent: Tuesday, February 08, 2005 7:31 PM > To: XML Developers List > Subject: Re: Is this constraint expressible in XML Schema? > > Hi, > > Does anyone know if there are plans to enhance XML Schema > to cover such deficiencies? > > Thanks, > Kenneth > > On Tue, 08 Feb 2005 14:30:14 -0800, Bob Foster <bob@o...> wrote: > > Kenneth Stephen wrote: > > > I want to express the following constraint using XML schema : > > > > > > An unbounded sequence of (A or B) elements which can > contain at > > > most n instances of A. > > > > > > To illiustrate, I set n = 2. In that case, > BABBBBBABBB is valid. > > > So is AABB . BABABA is not valid because there are more > than 2 A > > > elements in it. > > > > No can do. Try Schematron. > > > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org > <http://www.xml.org>, an initiative of OASIS > <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > >
|
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
|