You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Gregor Karlinger <gr...@iaik.at> on 2000/10/27 15:03:23 UTC

Bug in Schema Datatype URI reference

Hi all,

I think there is still a bug in the schema validation of the 
URI reference datatype in Xerces 1.2.1, since it does not allow
relative URIs, such as in

<element uriAttribute="afilename.xml"/>

According to RFC2396, which is the standard reference for this
schema datatype, relative URIs ARE possible:


      URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
      absoluteURI   = scheme ":" ( hier_part | opaque_part )
      relativeURI   = ( net_path | abs_path | rel_path ) [ "?" query ]
[...]
      rel_path      = rel_segment [ abs_path ]

      rel_segment   = 1*( unreserved | escaped |
                          ";" | "@" | "&" | "=" | "+" | "$" | "," )

Regards, Gregor
---------------------------------------------------------------
Gregor Karlinger
mailto:gregor.karlinger@gmx.net
http://GregorKarlinger.tsx.org
Student of Telematics
Graz, Austria
---------------------------------------------------------------