W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > March 2008

Edge Conditions in Processing Rules that might benefit from test cases

From: Shane McCarron <shane@aptest.com>
Date: Wed, 05 Mar 2008 23:59:06 -0600
Message-ID: <47CF882A.4020902@aptest.com>
To: "public-rdf-in-xhtml-tf.w3.org" <public-rdf-in-xhtml-tf@w3.org>

With my QA hat on (I know, I know - it's always on) I looked closely at 
the processing rules in section 5.  My intent was to identify edge 
conditions.  Some of these may be already addressed by existing tests, 
but others will be a better judge of that than I.

5.4. CURIEs

   1. When the datatype of an attribute is CURIE or CURIEs, a CURIE that
      uses an unmapped prefix MUST be ignored.
   2. A prefix can be remapped.  CURIEs using the same prefix with
      different mappings (in different scopes, of course) MUST resolve
      to different URIs, and therefore generate different triples.
   3. Prefix mappings have scope.  A prefix mapping cannot be used
      outside of its scope. A CURIE that references an out of scope
      prefix must be ignored.
   4. It is possible to define a relative mapping (e.g.,
      xmlns:ex="something.html#") which will then be interpreted
      according to the setting of "base".

5.5.  Sequence

   1. xml:lang has scope.  A language set in one scope MUST NOT effect
      any other scope.
   2. @xmlns is used to define prefixes.  In section 5.4.2 it says that
      relative URIs are transformed relative to base prior to being used
      in triples.  In section 5.5 step 2 it says they are not (or
      implies they are not).  Which is correct?

There are likely more, but I am supposedly on holiday now so I am just 
going to send this bit. 

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Thursday, 6 March 2008 05:59:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:55 UTC