Lists Home |
Date Index |
- To: "Kenneth Stephen" <email@example.com>, "XML Developers List" <firstname.lastname@example.org>
- Subject: RE: [xml-dev] Is this constraint expressible in XML Schema?
- From: "Chiusano Joseph" <email@example.com>
- Date: Tue, 8 Feb 2005 19:40:40 -0500
- Thread-index: AcUOPyd06FnkYcigTLa9ffVWd/IM2QAADeeA
- Thread-topic: [xml-dev] 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.
Booz Allen Hamilton
Strategy and Technology Consultants to the World
> -----Original Message-----
> From: Kenneth Stephen [mailto:firstname.lastname@example.org]
> Sent: Tuesday, February 08, 2005 7:31 PM
> To: XML Developers List
> Subject: Re: [xml-dev] Is this constraint expressible in XML Schema?
> Does anyone know if there are plans to enhance XML Schema
> to cover such deficiencies?
> On Tue, 08 Feb 2005 14:30:14 -0800, Bob Foster <email@example.com> 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
> 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>