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

Re: Why is xml:base a URI *reference*?


_ reference uri
> > 
> > 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!

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.