RE: anyURI datatype problem

Looks like I found someone who can help me out. Thanks anyway.

I'm thinking that it might have been the XML Schema Datatypes
Recommendation's vague use of language that might have thrown some
developers off.

For example, in 3.2.17.1 it states:

"The lexical space of anyURI is finite-length character sequences..."

One of the definitions of finite is:

"Having a positive or negative numerical value; not zero."
(dictionary.com)


Thanks again,
Nasseam Elkarra
http://www.myspotter.com


> -----Original Message-----
> From: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org]
> On Behalf Of Nasseam Elkarra
> Sent: Monday, July 28, 2003 4:41 AM
> To: xmlschema-dev@w3.org
> Subject: anyURI datatype problem
> 
> 
> I am incorporating RDF into a schema and receiving errors when trying
to
> validate against the following instance:
> 
> <rdf:Description about="">
> 
> The about attribute is defined in my schema as:
> <xs:attribute name="about" type="xs:anyURI" />
> 
> According to the XML Schema Part 2: Datatypes Recommendation
> (http://www.w3.org/TR/xmlschema-2/#anyURI), the anyURI datatype should
> conform to the URI syntax as defined by RFC 2396
> (http://www.ietf.org/rfc/rfc2396.txt).
> 
> In RFC 2396, section 4.2 titled "Same-document References" says:
> 
> "A URI reference that does not contain a URI is a reference to the
> current document.  In other words, an empty URI reference within a
> document is interpreted as a reference to the start of that
document..."
> 
> So according to the specs, a blank URI should be valid.
> 
> But let's see what happens when I try to validate my document using
> different parsers:
> 
> JAXP 1.2: No errors
> Sun MSV: No errors
> .NET XmlValidatingReader: Validation error: The 'about' attribute has
an
> invalid value according to its data type.
> xsdvalid: attribute "about" has invalid value "": an URI cannot be the
> empty string [cvc-datatype-valid.1.2.1] [cvc-attribute.3]
> 
> So I am having a bit of a problem in Visual Studio .NET because it
uses
> its own validator so I am getting errors and swiggly lines constantly
> which is driving me nuts.
> 
> I can get around the problem by declaring the attribute as a xs:string
> but this looks like a bug so is there anyway we can get this resolved?
> 
> Thanks,
> Nasseam Elkarra
> http://www.myspotter.com

Received on Monday, 28 July 2003 16:35:15 UTC