- From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
- Date: Tue, 18 Jan 2005 10:21:28 +0000
- To: Reto Bachmann-Gmuer <reto@gmuer.ch>
- Cc: www-rdf-interest@w3.org
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