[cc-community] License RDF Makes My XHTML Invalid

Michael David Crawford michael at geometricvisions.com
Mon Mar 31 03:16:07 EDT 2008


Greetings, Fellow Travellers,

The license markup generated by the CC site's license chooser isn't 
valid when placed in an XHTML 1.0 Strict document.  My whole site is 
XHTML Strict, and I'm very fastidious about valid markup, so I need to 
know how to fix it.

This is a relatively recent change; I checked an older CC-licensed page 
and it was still valid.

The problem is that the license RDF puts some attributes in the <span> 
element that aren't legal.

Could the problem be either my DOCTYPE or my document namespace?  They are:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

My page is "Why Free Music?" at:

   http://www.geometricvisions.com/music/manifesto/

You can run the W3C Validator on it with this link:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geometricvisions.com%2Fmusic%2Fmanifesto%2F

The license markup is:

<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">
<img alt="Creative Commons License" style="border-width:0" 
src="http://i.creativecommons.org/l/by-nd/3.0/88x31.png"/></a>
<span xmlns:dc="http://purl.org/dc/elements/1.1/" 
href="http://purl.org/dc/dcmitype/Text" property="dc:title" rel="dc:type">
Why Free Music?</span> by
<a xmlns:cc="http://creativecommons.org/ns#" 
href="http://www.geometricvisions.com/" property="cc:attributionName" 
rel="cc:attributionURL">
Michael David Crawford</a> is licensed under a<br />
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">
Creative Commons Attribution-No Derivative Works 3.0 Unported License</a>.

(I have adjusted the line breaks.)

While I've got your attention, it would be helpful if you had any 
comments on my new site design, primarily the navigation page header. 
(There is some major borkage in IE6, which I'll be working around in a 
later update.)

Thanks for you help!

-- 
Michael David Crawford
michael at geometricvisions.com
http://www.geometricvisions.com/ <-- Creative Commons Piano Music



More information about the cc-community mailing list