Print

Print


Ok .. i understand your point ... i know in html you are only allowed to
have one encoding in the document .. does the same hold for xml?

personally .. if i was mixing scripts like that .. i'd use a single encoding
like the default encodings utf-8 or utf-16

does anyone know of a practical example of a parser or xml agent that can
handle multiple encodings within the same document? or are you thinking of a
case where only the appropraite language information is extracted (ie
language negotiation) and the appropriate encoding used?

i'm just trying to clarify for myself whether your example was meant for
alng based extraction or whether all languages would be displayed ? since
each scenario would place evry different constraints on the parser .. or xml
agent



-----Original Message-----
From: Gisle Hannemyr <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: Tuesday, 11 May 1999 22:53
Subject: Re: Re-starting discussion


>Andrew Cunningham wrote:
>> I suspect the specification of the encoding is dependant of how rdf is
>> utilised.
>>
>> If the rdf is imbeded in the actual document (xml) then it should inherit
>> the encoding of the document, whereas if the rdf is independent of the
>> document it is describing then
>> the encoding should be specified.
>>
>> ideally ... the rdf should inherit the encoding of the xml document ..
>
>Well, sometimes you want to embed _several_ different languages using
>different character set encodings in the _same_ metadata record.
>
>Here is how I would catalogue a multilingual web-based game where the use
>can select his or her language of choice when logging on to the site:
>
>    <dc:title>
>     <rdf:Alt>
>      <rdf:li xml:lang="en">English Title</rdf:li>
>      <rdf:li xml:lang="de" xml:encoding="ISO-8859-1">German title</rdf:li>
>      <rdf:li xml:lang="pl" xml:encoding="ISO-8859-2">Polish title</rdf:li>
>      <rdf:li xml:lang="eo" xml:encoding="ISO-8859-3">Esperanto
title</rdf:li>
>      <rdf:li xml:lang="i-sami-no" xml:encoding="ISO-8859-4">Lappish
>title</rdf:li>
>      <rdf:li xml:lang="ru" xml:encoding="ISO-8859-5">Russian
title</rdf:li>
>      <rdf:li xml:lang="el" xml:encoding="ISO-8859-7">Greek title</rdf:li>
>     </rdf:Alt>
>    </dc:title>
>
>
>> in the absence of an encoding declaration ... your suggestion sounds
>> reasonable ...
>
>Fine.  I'll use it then.
>
>--
>- gisle hannemyr  ( [log in to unmask] - http://home.sol.no/home/gisle/ )
>------------------------------------------------------------------------
>  "Use the Source, Luke. Use the Source." -- apologies to Obi-Wan Kenobi
>------------------------------------------------------------------------
>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%