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

Re: (more details) embedding xml schema in an instance doc


whitespace constraining facet is prohibited
Hi Henry,

"Henry S. Thompson" wrote:

> "Dare Obasanjo" <dareo@m...> writes:
>
> > The schema For Schema contains a number of issues. Any parser that
> > validates it is broken.
>
> All fixed as of last week, as far as I and the XML Schema WG know.
> See the published errata for details [1].  Any that remain, please let
> us know!

Thanks for the update!
I've tested the new version of the schema against the following XML Schema
processors: Xerces (2.0.1), XML Spy 4.4, MSXML4 SP1 and SQC with the following
results:

XML Spy 4.4
--------------
No problems

SQC
------
No problems. (You have to add the namespace declaration for the xml: prefix but
that's not really related to XML Schema validation)

MSXML4 SP1:
-----------------
All the built-in simpleType definitions that derive from xs:anySimpleType have the
following error:

"Whitespace constraining facet is prohibited"

This was commented on by Dare in a previous post to this list.

Xerces 2.0.1
--------------
Xerces has four problems with the schema:

[1] (1 of 43) Schema problem: Unknown base type 'xs:anySimpleType' for a type
'string' (For simpleType name="string")

[2] (2 of 43) Schema problem: Facet 'whiteSpace' is not allowed by this type. (For
simpleType name="string")

Both these errors occur for all the simpleTypes that derive from xs:anySimpleType

[3] For the complexType "attributeGroupRef" the following errors are reported:

(40 of 43) Schema problem: Group's occurrence range is not a valid restriction of
base group's occurrence range.
(41 of 43) Schema problem: Error for type 'attributeGroupRef'.  The particle of the
type is not a valid restriction of the particle of the base.

[4] For the complexType "groupRef" the following errors are reported:

(42 of 43) Schema problem: Group's occurrence range is not a valid restriction of
base group's occurrence range.
(43 of 43) Schema problem: Error for type 'groupRef'.  The particle of the type is
not a valid restriction of the particle of the base.

If you would analyze the above results with regards to the validation results I
would say that the following would be the case:

1) Since Xerces is the only processor to report the errors [1], [3] and [4] above
my guess would be that these are a bug in Xerces and can be reported as such.
2) The Xerces bug  [2] above is reported by both Xerces and MSXML4 so this probably
needs clarification from the WG.

I'd appreciate any comments on the above issues.

Cheers,
/Eddie


>
> ht
>
> [1] http://www.w3.org/2001/05/xmlschema-errata.html
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>           W3C Fellow 1999--2002, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@c...
>                      URL: http://www.ltg.ed.ac.uk/~ht/
>  [mail really from me _always_ has this .sig -- mail without it is forged spam]
>
> -----------------------------------------------------------------
> 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://lists.xml.org/ob/adm.pl>


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.