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

1) Works except that there are some things that I can't seem to do
with the Builder syntax

2) 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,

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 <td
class="family_title">Family</td>

However, this does work. You need to have the

xml.td("Family", :class => "family_title") this will get you this <td
class="family_title">Family</td>

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