i18n namespace when serializing to xml/xhtml

10 views
Skip to first unread message

Yuen Ho Wong

unread,
May 22, 2011, 8:44:32 PM5/22/11
to gen...@googlegroups.com
In Genshi 0.6, when serialize a tag that has an i18n:msg attribute to html, the namespaced attribute is removed in the output and so is its declaration. However, it remains in the output when serializing to XML or XHTML. I was wondering if this is a bug because it seems that all the genshi py:* prefixed attributes and the genshi namespace declaration is removed in any X*ML serializers, shouldn't all the i18n attributes get the same treatment too? If not? Why not? Is there a way to get rid of the i18n attributes in the output now?

Jimmy Yuen Ho Wong

Yuen Ho Wong

unread,
May 26, 2011, 1:39:41 PM5/26/11
to Genshi
Anyone?

Christian Boos

unread,
May 26, 2011, 2:43:49 PM5/26/11
to gen...@googlegroups.com
On 5/26/2011 7:39 PM, Yuen Ho Wong wrote:
> Anyone?
>
> On May 23, 8:44 am, Yuen Ho Wong<wyue...@gmail.com> wrote:
>> In Genshi 0.6, when serialize a tag that has an i18n:msg attribute to html,
>> the namespaced attribute is removed in the output and so is its declaration.
>> However, it remains in the output when serializing to XML or XHTML.

For example, in Trac you can see that the generated output (XHTML) looks
like this:

view-source:http://trac.edgewall.org/wiki

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>
The Trac Project
(snip)

Not sure what you're doing exactly on your side... a reproduction
example would help.
Do you have Babel installed?

-- Christian


Reply all
Reply to author
Forward
0 new messages