W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > July 2008

Re: RDFa in HTML 4

From: Johannes Koch <koch@w3development.de>
Date: Fri, 18 Jul 2008 11:29:05 +0200
Message-ID: <48806261.5010904@w3development.de>
To: public-rdf-in-xhtml-tf@w3.org

Manu Sporny schrieb:
> The issue with the RFC-2731 approach, unless I'm missing something, is
> that it doesn't allow multiple scoped prefix definitions. Take the
> following example:
>     <div xmlns:dcterms="http://purl.org/dc/terms/"
>          xmlns:audio="http://purl.org/media/audio#"
>          about="#welcome-to-the-jungle" typeof="audio:Recording">
>        <span property="dcterms:title">Welcome to the Jungle</span>
>     </div>
> How would we accomplish doing that with the RFC-2731 approach?

If you want to include RDFa into HTML, you have to change the HTML DTD 
anyway. So why not add a namespace prefixes-URIs mapping attribute?

<div ns-mapping="dcterms http://purl.org/dc/terms/ audio 
http://purl.org/media/audio#" ... >

This looks like schemaLocation attribute in XML Schema, here being a 
list of tuples (prefix and URI). However this approach does not work 
with default namespaces.

Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)
Received on Friday, 18 July 2008 09:29:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:28 UTC