W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > December 2006

[Bug 4048] DataTypes tests: validity of anyURI values

From: <bugzilla@wiggum.w3.org>
Date: Fri, 08 Dec 2006 19:09:57 +0000
CC:
To: public-xml-schema-testsuite@w3.org
Message-Id: <E1Gsl6b-0002ca-6R@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048

           Summary: DataTypes tests: validity of anyURI values
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Microsoft tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org


In the Microsoft DataTypes tests, test anyURI_a001_1336 appears to assume that

1111111111111111111http://foo/bar

is a valid instance of xs:anyURI. I believe that it isn't. The specification
states:

The ·lexical space· of anyURI is finite-length character sequences which, when
the algorithm defined in Section 5.4 of [XML Linking Language] is applied to
them, result in strings which are legal URIs according to [RFC 2396], as
amended by [RFC 2732].

The XLink escaping algorithm has no effect on this string. The string cannot be
interpreted as an absolute URI because the first component of an absolute URI
(the scheme) must start with an alpha; and it cannot be interpreted as a
relative URI because the part before the first "/" contains a colon.

Similarly, other strings that the tests consider to be valid anyURI values, but
which I think are invalid, include:

test           URI(s)

anyURI_a003    :a
               b:
anyURI_b004    %
anyURI_b006    //
Received on Friday, 8 December 2006 19:10:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:55 GMT