OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Is this constraint expressible in XML Schema?

[ Lists Home | Date Index | Thread Index ]

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@objfac.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.
>




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS