Thanks for your quick reply. I'll look into RDFa.
On Mon, Dec 15, 2008 at 5:37 AM, Toby A Inkster <[email protected]> wrote: > Jorel Pi wrote: > >> If I had a page with 2 images, each having a different license. What >> am I supposed to do? > > This is a known problem with rel=license, and the reason why rel=license has > been (at least for now) removed as a component of the current hAudio, figure > and hRecipe drafts. In general, the scoping of properties is an area where > microformats have always been murky. > >> I was thinking of just using span with the name of the license as the >> class. > > > This is perfectly good POSH, but obviously no parsers will pay any attention > to it. If you're looking for something which will be machine readable, then > you probably want RDFa. RDFa has very clear scoping rules. An example might > be: > > <img src="foo.jpeg" alt="A Foo"> > <p> > <span about="foo.jpeg"> > The image above is licensed under > <a rel=":license" href="foo.html">Foo licence</a>. > </span> > <span about="bar.jpeg"> > The image below is licensed under > <a rel=":license" href="bar.html">Bar licence</a>. > </span> > </p> > <img src="bar.jpeg" alt="A Bar"> > > The colons in the rel values are not actually needed, but they have the > effect of "masking" the rel="license" from non-RDFa processors. Note that > the "about" attribute is RDFa-specific, so if you want your page to > validate, you'll need to use the RDFa doctype, which is: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" > "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> > > -- > Toby A Inkster > <mailto:[email protected]> > <http://tobyinkster.co.uk> > > _______________________________________________ > microformats-discuss mailing list > [email protected] > http://microformats.org/mailman/listinfo/microformats-discuss > _______________________________________________ microformats-discuss mailing list [email protected] http://microformats.org/mailman/listinfo/microformats-discuss
