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

Re: Notations in XSD - a bug???

  • From: "Thomas B. Passin" <tpassin@h...>
  • To: xml-dev@l...
  • Date: Fri, 10 Aug 2001 09:22:03 -0400

xsd notations
[Anderson, John]
>
> There appears to be a conflict in the XSD spec for notation declarations.
> 3.12.1 gives the following as properties of the notation schema component:
>
> {system identifier} Optional if {public identifier} is present. A URI
> reference.
> {public identifier} Optional if {system identifier} is present. A public
> identifier, as defined in [XML 1.0 (Second Edition)].
>
> However, 3.12.2 (XML Representation) indicates that a public identifier is
> mandatory. This would be a seemingly unnecessary divergence from XML1.0
> which doesn't require public id (so long as system id is present). The IBM
> SQC complains about it if a public id is missing, XMLSpy doesn't and I
> haven't tested any others.
>
> Anyone care to clarify this? In any case, this is a bug in the spec, but I
> presume 3.12.1 is correct unless someone can definitively tell me
otherwise.
>

I can't clarify it authoritatively, but I have noticed a few things.  First
of all, I take it that you are referring to thie missing expression in
section 3.12.2 "if present, otherwise absent" - this phrase is used for the
"system identifier" property but not for the "public identifier" property.
Since it is present in the one but not in the other, one would normally
assume the difference is significant, but this view would be contradicted by
section 3.12.1, which clearly says the public identifier is optional.

What I noticed is that the "target namespace" property is in the same
position - optional in 3.12.1, not explictly stated in 3.12.2.  However, the
xml example given in 3.12.2 does not include a "targetNamespace" attribute.
So here we have an example that acts as if the property is optional in
agreement with 3.12.1.

I infer that 1) the example represents what was intended for the
targetNamespace, and 2) the public identifier is similarly optional.

Not exactly authoritative, but convincing to me.

Cheers,

Tom P


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.