W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2009

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

From: Sam Kuper <sam.kuper@uclmail.net>
Date: Thu, 29 Jan 2009 05:18:17 +0000
Message-ID: <4126b3450901282118j782eac2x30ee5814326b52d3@mail.gmail.com>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 29 January 2009 05:18:56 GMT