Valid RDFa in XHTML

I am tying to create pages with RDFa.

The two ways I have looked into is:

  1. Use builder to create the page

  2. Use the RDFa gem

  3. Works except that there are some things that I can’t seem to do
    with the Builder syntax

  4. Works except that it does not create valid XHTML. (Maybe I am using
    it incorrectly)

How are people creating valid RDFa pages?

Any recommendations?

Thanks!

  • Pete

Hi Pete,
On Wed, 2009-06-17 at 11:10 -0700, Pete wrote:

How are people creating valid RDFa pages?

Any recommendations?

I haven’t worked with RDFA yet but you might try REXML. It’s a typical
next step when builder falls short.

HTH,
Bill

bill walton wrote:

Hi Pete,
On Wed, 2009-06-17 at 11:10 -0700, Pete wrote:

How are people creating valid RDFa pages?

Any recommendations?

I haven’t worked with RDFA yet but you might try REXML. It’s a typical
next step when builder falls short.

I haven’t worked with RDFa either, but it’s worth remembering that ERb
and Haml will generate XML just as easily as HTML.

HTH,
Bill

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

I think I discovered why I was not able to create some more complex
XHTML structures, including those for RDFa in builder

The syntax was not what I expected.

For instance:

I thought that this should work, but it does not.

xml.td(:class => “family_title”, “Family”) would get me this Family

However, this does work. You need to have the

xml.td(“Family”, :class => “family_title”) this will get you this Family

One things that I already knew about, but may trip other up is that
you need to also make sure that you have the right mimetype set in
your config/initializers.

Hope this helps someone else :slight_smile:

  • Pete