[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is this constraint expressible in XML Schema?

  • To: "Kenneth Stephen" <marvin.the.paranoid@g...>, "XML Developers List" <xml-dev@l...>
  • Subject: RE: Is this constraint expressible in XML Schema?
  • From: "Chiusano Joseph" <chiusano_joseph@b...>
  • Date: Tue, 8 Feb 2005 19:40:40 -0500
  • Thread-index: AcUOPyd06FnkYcigTLa9ffVWd/IM2QAADeeA
  • Thread-topic: Is this constraint expressible in XML Schema?

xml constraint out of scope
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.