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

RE: XSD question

  • To: "DuCharme, Bob \(LNG-CHO\)" <bob.ducharme@l...>,<xml-dev@l...>
  • Subject: RE: XSD question
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Thu, 11 Sep 2003 14:56:41 -0700
  • Thread-index: AcN4rxC0xITCgOR5R5GqF8cvIW09YAAAEHdA
  • Thread-topic: XSD question

xsd processcontents lax

> -----Original Message-----
> From: DuCharme, Bob (LNG-CHO) [mailto:bob.ducharme@l...] 
> Sent: Thursday, September 11, 2003 2:52 PM
> To: xml-dev@l...
> Subject:  XSD question
> 
> First, is there any mailing list dedicated to just W3C schema 
> questions? I may have a few in the near future and don't want 
> to clutter up xml-dev. 

xmlschema-dev@w...

> My question us about the use of processContents="lax" with 
> xs:any. The schema Rec part 1 says that for a processContents 
> value of "lax", "If the item, or any items among its 
> [children] if it's an element information item, has a 
> uniquely determined declaration available, it must be *valid* 
> with respect to that definition, that is, *validate*  where 
> you can, don't worry when you can't." I was trying to use a 
> combination of xs:any elements and more specific declarations 
> write a schema that would accept any document, validating 
> only certain elements if they were found, *wherever* they 
> were found. I can do this in RELAX NG, but I'm giving up hope 
> on doing it in XSD, and I think it's because of the 
> "[children]" (as opposed to descendants) part above. 
> 
> Let's say I declare element alpha to have a sequence of one 
> or more xs:any children with processContents="lax". Then I 
> declare element beta to have a specific content model. I can 
> put beta elements and anything else as children of alpha, and 
> if any of those beta elements violate the declared content 
> model, a schema-validating parser will flag it as an error. 
> However, if a beta element that violates the declared content 
> model is a *grandchild* of alpha instead of being a direct 
> child, the schema-validating parser isn't supposed to flag it. 
> 
> Do I understand this correctly?

Yes. 


-- 
PITHY WORDS OF WISDOM 
Nothing ever gets built on schedule or within budget.


This posting is provided "AS IS" with no warranties, and confers no
rights. 

 

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.