Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] namespace checking

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Fitzgerald" <mike AT wyeast.net>
  • To: "Elliotte Rusty Harold" <elharo AT metalab.unc.edu>, "XOM" <xom-interest AT lists.ibiblio.org>
  • Subject: RE: [XOM-interest] namespace checking
  • Date: Wed, 9 Oct 2002 13:29:45 -0700

I was thinking mostly of how relative URIs have been deprecated for
namespace names.

http://www.w3.org/XML/xml-names-19990114-errata#NE04

Mike

> -----Original Message-----
> From: Elliotte Rusty Harold [mailto:elharo AT metalab.unc.edu]
> Sent: Wednesday, October 09, 2002 1:09 PM
> To: Michael Fitzgerald
> Subject: RE: [XOM-interest] namespace checking
>
>
> At 1:04 PM -0700 10/9/02, Michael Fitzgerald wrote:
> >In regard to this:
> >
> >Element tiny new Element("tiny");
> >Element a = new Element("a", "glorp");
> >Element b = new Element("b", "www.whatever.com");
> >Element c = new Element("c", "#eee");
> >
> >...
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> ><tiny><a xmlns="glorp"/><b xmlns="www.whatever.com"/><c
> >xmlns="#eee"/></tiny>
> >
> >None of these produce any complaints (1.0d5) though I would
> expect them to.
> >
>
> That's because these are all syntactically correct URI references
> according to RFC 2396. If you want to see the exception try something
> that isn't legal; such as non-ASCII characters, a percent sign that
> is not followed by two hex digits, or the illegal characters such as
> <, >, or ".
>
> See http://www.ietf.org/rfc/rfc2396.txt for the normative rules on
> what is and is not a legal URI reference. (Also note that namespace
> URIs are actually URI references, not URIs. That's why #eee doesn't
> throw an exception.)
> --
>
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> | XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
> | http://www.cafeconleche.org/books/xian2/ |
> | http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
> +----------------------------------+---------------------------------+
> | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
> | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
> +----------------------------------+---------------------------------+
>





Archive powered by MHonArc 2.6.24.

Top of Page