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 :-)
- Pete
On Jun 17, 1:10 pm, Pete
<pete.devr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am tying to create pages withRDFa.
>
> The two ways I have looked into is:
>
> 1) Use builder to create the page
> 2) Use theRDFagem
>
> 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 validRDFapages?
>
> Any recommendations?
>
> Thanks!
>
> - Pete