XHTML Vocab document

I've pointed this out before, but haven't had a response.

If you look at <http://www.w3.org/1999/xhtml/vocab/> you will see  
markup along the lines of:

>   <dt id="chapter" about="#chapter" typeof="rdf:Property">chapter</dt>
>     <dd about="#chapter" property="rdfs:comment"
>       datatype="xsd:string"><span>chapter</span> refers to a  
> resource serving
>       as a chapter in a collction. </dd>

This creates the triples:

<http://www.w3.org/1999/xhtml/vocab/#chapter> a rdf:Property ;
	rdfs:comment """chapter refers to a resource service
	as a chapter in a collction. """^^xsd:string .

(Note typo in "collection", but that's not my main point.) However,  
because the xhv namespace is <http://www.w3.org/1999/xhtml/vocab#>,  
what we'd really like to see is:

<http://www.w3.org/1999/xhtml/vocab#chapter> a rdf:Property ;
	rdfs:comment """chapter refers to a resource service
	as a chapter in a collction. """^^xsd:string .

Note the resource's URI has had a slash removed. Two possible routes  
to fixing this would be:

1. change the URI of the document to <http://www.w3.org/1999/xhtml/ 
vocab> (no trailing slash); or
2. add a <base> element to the document.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Thursday, 8 January 2009 15:03:29 UTC