PROPOSED test cases 0127 and 0128 - empty xmlns attribute values

Inspired by a couple of Philips tests... 

0127:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:foaf="http://xmlns.com/foaf/0.1/">
  <head>
    <title>Test 0127</title>
        <base href="http://www.example.org/me">
  </head>
  <body>
    <div id="author" about="#author" xmlns:foaf="">
            <h2 property="foaf:name" datatype="">Shane McCarron</h2>
        </div>
  </body>
</html>

SPARQL:

ASK WHERE {
<http://www.example.org/me#author> <http://xmlns.com/foaf/0.1/name> 
"Shane McCarron" .
}

0128:

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Test 0128</title>
        <base href="http://www.example.org/me">
  </head>
  <body>
    <div id="author" about="#author" xmlns:foaf="">
            <h2 property="foaf:name" datatype="">Shane McCarron</h2>
        </div>
  </body>
</html>

SPARQL:

# This test should result in a 'NO', i.e. no triples should be generated 
from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/me#author> <> "Shane McCarron" .
}


RDF:


    <TestCase rdf:about="Test0127">
        <dc:contributor>Shane McCarron</dc:contributor>
        <dc:title>xmlns with empty value does not override existing
                declaration with same prefix</dc:title>
        <informationResourceInput rdf:resource="0127.html"/>
        <informationResourceResults rdf:resource="0127.sparql"/>
        <purpose>Checks to ensure that an empty value for a prefix
                declared with xmlns: does NOT override an existing 
definition
                of the same prefix.</purpose>
        <reviewStatus 
rdf:resource="http://www.w3.org/2006/03/test-description#unreviewed"/>
        <specificationReference></specificationReference>
    </TestCase>

    <TestCase rdf:about="Test0128">
        <dc:contributor>Shane McCarron</dc:contributor>
        <dc:title>Empty xmlns: declaration is ignored</dc:title>
        <informationResourceInput rdf:resource="0128.html"/>
        <informationResourceResults rdf:resource="0128.sparql"/>
        <purpose>Checks to ensure that when an prefix is declared with
                no value it is ignored.</purpose>
        <reviewStatus 
rdf:resource="http://www.w3.org/2006/03/test-description#unreviewed"/>
                <expectedResults 
rdf:datatype="xsd:boolean">false</expectedResults>
        <specificationReference></specificationReference>
    </TestCase>

-- 
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, 4 June 2009 21:22:16 UTC