W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2005

XMLLiterals and language

From: Reto Bachmann-Gmuer <reto@gmuer.ch>
Date: Mon, 17 Jan 2005 23:08:29 +0100
Message-ID: <41EC375D.50708@gmuer.ch>
To: www-rdf-interest@w3.org

In my application I often deal with XHTML in literal values. The literal 
have a language as a whole, usually this is the language of all the 
xhtml elements but not necessarily. Currently I'm storing these as plain 
literals, now I read in rdf-concepts that XMLLiterals have a root 
element "rdf-wrapper" which may have an xml:lang. Do I understand this 
right that all xml-literals have this (implicit) wrapper and may have a 
language? How do I encode an XMLLiteral with language in rdf/xml?

The RDF-Validator does not mention the language in the triple-list 
generated from the following:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  <rdf:Description rdf:about="http://www.w3.org/">
    <dc:title  rdf:parseType="Literal" xml:lang="en">World Wide Web 

Received on Monday, 17 January 2005 22:01:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:54 UTC