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

[xmlschema-dev] <none>

From: bharath <bharathkr@huawei.com>
Date: Mon, 08 Dec 2008 12:05:11 +0530
To: xmlschema-dev@w3.org
Cc: ashutosh_p@huawei.com, ranjit@huawei.com
Message-id: <002001c958ff$1f6be800$3a12120a@china.huawei.com>
[xmlschema-dev] <none>
Hi..According to schema, there are some constraints for a restriction to be
valid.(given under Schema Component Constraint: Particle Restriction OK
(Elt:Elt -- NameAndTypeOK)).  When I give a schema which is not correct
according to the above constraints, libxml is not showing any error when it
is parsing it. The document is attached to this mail Where the restricted
element is not correct. These constraints are handled in the following
functions 

xmlSchemaCheckParticleRangeOK

xmlSchemaCheckRCaseNameAndTypeOK

xmlSchemaCheckRCaseNSCompat

xmlSchemaCheckRCaseRecurseAsIfGroup etc.

which are under the conditional compilation of the macro
"ENABLE_PARTICLE_RESTRICTION" which is commented.

Can you please help me in handling these constraints.

Thanks and regards,

Bharath.




Received on Monday, 8 December 2008 06:36:05 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.