W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > February 2006

John Cowan's review of REX

From: John Cowan <cowan@ccil.org>
Date: Thu, 23 Feb 2006 00:06:03 -0500
To: public-xml-core-wg@w3.org
Message-ID: <20060223050603.GA10327@ccil.org>

The only issues I found here are about IRIs.  Section 2.1 requires that
the value of the 'ns' attribute, which can appear on any element, must
be either an IRI or the empty string.  This is fine, but it also
requires that the IRI be valid, and if not, the element on which
the attribute appears and all its children must be ignored.

This is over-heavy.  Validating an IRI is very difficult, involving
a very complex regular expression or the equivalent in code.
(Note that "an IRI" excludes a relative reference; it is an
absolute IRI with or without a fragment identifier).  No such
requirement should be placed on the REX processor.

In section 4.1, the namespaceURI field of Event objects created
by the processor is said to be the value of the 'ns' attribute.
It should rather be the equivalent URI, since the value of
namespaceURI is a URI.

-- 
In politics, obedience and support      John Cowan <cowan@ccil.org>
are the same thing.  --Hannah Arendt    http://www.ccil.org/~cowan
Received on Thursday, 23 February 2006 05:06:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:35 UTC