Re: XMLLiterals and language

Language is a pain with XML Literals.


> 
> 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#"
>  xmlns:dc="http://purl.org/dc/elements/1.1/">
>  <rdf:Description rdf:about="http://www.w3.org/">
>    <dc:title  rdf:parseType="Literal" xml:lang="en">World Wide Web 
> Consortium</dc:title>
>  </rdf:Description>
> </rdf:RDF>
> 

According to the recs the language in this one is ignored. If you want 
the language tag (which you should) you have to put it explicitly inside 
the XMLLiteral e.g.


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns="....xhtml"
   xmlns:dc="http://purl.org/dc/elements/1.1/">
   <rdf:Description rdf:about="http://www.w3.org/">
     <dc:title  rdf:parseType="Literal" xml:lang="en"><span
xml:lang="en">World Wide Web
  Consortium</span></dc:title>
   </rdf:Description>
  </rdf:RDF>
> Thanks!
> reto
> 

Jeremy

Received on Tuesday, 18 January 2005 10:21:29 UTC