Wordpress RDFa theme [was: Re: Serving XHTML+RDFa as application/xhtml+xml]

2009/1/27 Shane McCarron <shane@aptest.com>
> The problem is that the DOCTYPE you are using is not one that is known to the user agents and the user agents are not dereferencing the referenced DTD to learn about the entities.  As a result, named entities other than the 5 defined by XML will not work in such pages.
>
> I was not myself aware of this issue until a few days ago.  The easiest solution is to use numeric entity references instead of named
> entity references.  PHP probably even has a module that will magically transform them for you on the way out.

I didn't find such a PHP module, at least not one that I could easily
integrate into Wordpress. But it's likely I just haven't looked hard
enough...

Anyhow, I've built an XHTML+RDFa parent theme for Wordpress 2.7 which
takes the above issue into account. There's a link to it from the
wiki: http://rdfa.info/wiki/Publish#Wordpress

I'd be very glad to hear feedback from anyone on this list who feels
like giving it a whirl. It's the first Wordpress theme I've created
for distribution, so it's entirely possible I've messed up somewhere
along the line. Still, it seems to work for me.

Cheers,

Sam

Received on Thursday, 29 January 2009 05:18:53 UTC