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

Re: xhtml markup such as <strong> and <em> in RDFa values

From: Keith Alexander <k.j.w.alexander@gmail.com>
Date: Sat, 5 Sep 2009 11:14:32 +0100
Message-ID: <a67978d90909050314j2ca1268cp262c38498821216c@mail.gmail.com>
To: public-rdfa@w3.org
Cc: RDFa <public-rdf-in-xhtml-tf@w3.org>

If you want RDFa parsers to ignore the tags when parsing the value,
add datatype="" to the element with the @property attribute.  This
tells the parser not to include the markup in the value of the

 <h2 class="title" property="dc:title" datatype="">Plain

Like you say, you can also put the value in a @content attribute.

This is the same no matter what predicate is used - dc:title ,
rdfs:label , foaf:name -  RDFa is vocabulary agnostic.

See http://www.w3.org/TR/rdfa-syntax/#sec_6.3.1. section  XML Literals

Hope that helps?


On Sat, Sep 5, 2009 at 10:54 AM, Benjamin Melanšon<pwgdarchive@gmail.com> wrote:
> If our title is <h2 class="title">Plain <em><strong>text</strong></em></h2>
> should we create a content="Plain text" when, for instance, marking it
> up as property="dc:title"?
> Does the answer change for different properties?
> Or large chunks of text that could include images and other media entities?
> Thank you very much for fielding this question from the Drupal community,
> áben
> Open Source Free Software Web Development
> Agaric Design Collective
> http://agaric.com/
> 774-286-1770
Received on Saturday, 5 September 2009 10:15:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:04 UTC