You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/03/24 20:49:24 UTC
DO NOT REPLY [Bug 7417] New: -
Schemas can not be validated against the W3C specification
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7417>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7417
Schemas can not be validated against the W3C specification
Summary: Schemas can not be validated against the W3C
specification
Product: Xerces-C++
Version: 1.7.0
Platform: Other
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Validating Parser (Schema) (Xerces 1.5 or up only)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: russ@gmx.de
It should be possible to validate any schema against the w3c specifications.
Therefore w3c provides a schema-collection to validate own schemas. So using
http://www.w3.org/2001/XMLSchema.xsd as the Schema for the Schema-namespace
should validate own schemas.
So writing a simple programm like
test.xsd:
<?xml version="1.0"?>
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
targetNamespace = "mynamespace"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd" >
<annotations>
</annotations>
</schema>
should cause as only error that "annotations" is not part of the schema
namespace. Eventually there should be some warnings about double defined
attibutes (because w3c do so) but nothing else.
If the checking is done using xerces ("sax2count test.xsd") you will see
something around 120 errors, depending on the version.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org