Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Localization. How should I do this? Thank You.

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: NULL
Date: 4/20/2009 6:15:00 PM
On Mon, 20 Apr 2009 09:14:05 -0700 (PDT), shapper <mdmoura@g...>
wrote:

>Hello,
>
>I creating xml files to hold localized resources such as posts,
>documents, contents, etc.
>
>For example, a post contains the following fields:
>PostID, PostTitle, PostBody, PostCreatedDate, PostUpdatedDate and
>PostIsPublished
>
>Localized Columns:
>PostTitle and PostBody
>
>NO Localized columns:
>PostID, PostCreatedDate, PostUpdatedDate and PostIsPublished
>
>What is the best way to create a XML file structure to hold posts?
>
>I always use SQL databases but in this project I need to use XML files
>that I am not so used to ...


There are many ways but there is at least a standardised way to
reference language in an XML node (tag), using xml:lang

See these pages for a couple of examples of usage and gotchas :
http://www.opentag.com/xmli18nfaq.htm
http://docs.oasis-open.org/dita/v1.1/OS/archspec/xmllang.html
http://www.simonstl.com/xmlprim/xmlupdate/atts.html 

Check the part above on ISO 639 codes for language and locale
specifiers : e.g. en-US vs en-GB and pt-BR vs pt-PT : Portugese
Brazilan vs Portugese Portugal

Be sure that you're dealing with UTF-8 when accepting (web form)
input, DB column processing, and XML output, to avoid any problems
with character sets like ISO-8859-1 (Western European) not defining al
the international characters you need to use in your posts.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2009
http://mvp.support.microsoft.com/mvpfaqs


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent