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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Is this constraint expressible in XML Schema?

[ Lists Home | Date Index | Thread Index ]
  • To: XML Developers List <xml-dev@lists.xml.org>
  • Subject: Is this constraint expressible in XML Schema?
  • From: Kenneth Stephen <marvin.the.paranoid@gmail.com>
  • Date: Tue, 8 Feb 2005 16:13:18 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=BOEmQ6vyIZ3i+XAiG5YwWz2HB15mYSjVBSVcIbYr7zQOb01LEWed27xpvkoL0Dqid1vOQdWifathQoFDj5ppmMXC956xGszYdmk7lc3iBdVEnqR/4pY5T9T2rGpMhqjcrYfjmH4zdaRo7HS7QnY0LYVopbLhvJ8zuEtmo8U2it4=
  • Reply-to: Kenneth Stephen <marvin.the.paranoid@gmail.com>

Hi,

    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.

Thanks,
Kenneth




 

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

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