<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello everyone,<div><br></div><div>I am maintaining a multilingual website which works with XML, XSLT to generate XHTML.</div><div><br></div><div>I am working with Apache Cocoon (<a href="http://cocoon.apache.org/2.1/)">http://cocoon.apache.org/2.1/)</a> using (among other things) their I18NTransformer. Basically I can use elements in the I18N (<span class="Apple-style-span" style="font-size: 13px; white-space: pre; "><a href="http://apache.org/cocoon/i18n/2.1)">http://apache.org/cocoon/i18n/2.1)</a> namespace, and then tell Cocoon to apply the I18NTransfomer to the document; this replaces the I18N elements with a localized value (eg. a formatted date/number, a translated label/attribute, etc...).</span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre;">I have been looking at lxml a little bit to see if I could move to a Python-based framework for the website. I am not quite sure how to go about the I18N part though.</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre;">Using the Babel library (<span class="Apple-style-span" style="font-size: 12px; white-space: normal; "><a href="http://babel.edgewall.org/)">http://babel.edgewall.org/)</a> along with request headers to generate localized data, I have everything I need. What is missing is the "parser" for the I18N elements. All I can think of right now is to implement a SAX parser, the way Cocoon does (in Java).</span></span></font></div><div><br></div><div>Does anyone have suggestions? Am I making this too complicated?</div><div><br></div><div>Thanks!</div><div><br></div><div>Alexis</div></body></html>