W3C home > Mailing lists > Public > public-rdfa@w3.org > November 2009

list-expansion in RDFa

From: Gregg Kellogg <gregg@kellogg-assoc.com>
Date: Tue, 10 Nov 2009 20:59:02 -0500
To: RDFa Community <public-rdfa@w3.org>
Message-ID: <B061CADA-AFB2-48DB-8D99-5117F58BE983@kellogg-assoc.com>
I notice that RDFa does not define rdf:li list expansion as in RDF/XML. In RDF/XML, according to http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements, rdf:li is expanded to rdf:_1, rdf:_2 and so forth during expansion. I could not find anything similar in RDFa, but it seems like a reasonable operation.

An example test case could be the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
                      "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <body>
    <ol about="http://example.com/9997.xhtml">
      <li property="rdf:li">This is first</li>
      <li property="rdf:li">This is second</li>
    </ol>
  </body>
</html>

With expected results:

<http://example.com/9997.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "This is first" . <http://example.com/9997.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "This is second" .

Gregg
Received on Wednesday, 11 November 2009 02:01:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 11 November 2009 02:01:07 GMT