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, 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, > BillBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
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