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

What IS a valid URI Reference?

  • From: David Hunter <david.hunter@m...>
  • To: xml-dev@l...
  • Date: Tue, 30 Jan 2001 15:12:41 -0500

valid uri
[I couldn't find it, but if this is an issue that has already been covered,
please point me to the proper posts in the archives, and I'll research this
further offline.]

The namespaces rec says that namespaces are identified by a URI reference,
and points to RFC2396, but I'm wondering:

a)  What should a namespace-aware XML parser do if it encounters a namespace
identifier which is not a valid URI reference?

b)  Is it even possible for the XML parser to tell if a string is a valid
URI Reference?  From some posts I waded through in the archives, it seems
that it may not be cut and dried, when a string doesn't fit with this RFC.

For example, MSXML accepts the following XML document with no qualms:

<blah xmlns="@+_)(*^%%%{}"/>

(and I think Xerces does as well, although my Java skills are weak, and I
just might not be capturing errors properly.)

Is "@+_)(*^%%%{}" really a valid URI Reference?  (Section 2.2 of RFC2396
seems to indicate that at the very least the "@" and "+" characters would
have to be escaped...)  And if not, are there parsers which would reject it?

Any insights that are provided will be useful.

David Hunter
Senior Architect
MobileQ
david.hunter@m...
http://www.mobileq.com

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.