[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why is xml:base a URI *reference*?
> > > > Is there a regular expression or BNF grammar for anyURI? > > > > Who needs a grammar? Surely this, from Schema part 2, is good enough for > any implementor: > > Each URI scheme imposes specialized syntax rules for URIs in that > scheme, including restrictions on the syntax of allowed fragement > identifiers. Because it is impractical for processors to check that a > value is a context-appropriate URI reference, this specification follows > the lead of [RFC 2396] (as amended by [RFC 2732]) in this matter: such > rules and restrictions are not part of type validity and are not checked > by .minimally conforming. processors. Thus in practice the above > definition imposes only very modest obligations on .minimally > conforming. processors. > > I'm still waiting for someone to tell me exactly what the "modest > obligations" are. Michael, I am emotionally on your side. However, I've tried to put something in my implementation of the recommendation; the regular expression had been borrowed from a post on the net which quoted a post in a private list by Alexander Falk of Altova. Here it is: (([a-zA-Z][0-9a-zA-Z+\-\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\.\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\.\-_!~*'()%]+)? I am now wondering whether anyURI is a URI reference, and whether it is what the authors meant? David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|