[cc-community] License RDF Makes My XHTML Invalid

Nathan Yergler nathan at creativecommons.org
Tue Apr 1 10:54:16 EDT 2008


Hi Michael,

We're using RDFa to annotate the HTML; you can find more on RDFa in
general at http://rdfa.info/wiki/, and information on making your
document validate at http://rdfa.info/wiki/How-to-validate.  It does
boil down to adjusting the DOCTYPE.

Nathan

On Mon, Mar 31, 2008 at 12:16 AM, Michael David Crawford
<michael at geometricvisions.com> wrote:
> 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
>
>  _______________________________________________
>  cc-community mailing list
>  cc-community at lists.ibiblio.org
>  http://lists.ibiblio.org/mailman/listinfo/cc-community
>


More information about the cc-community mailing list