[Po4a-devel]Docbook XML translation - howto skip tags

Jordi Vilalta jvprat@wanadoo.es
Thu, 17 Mar 2005 20:48:30 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811584-1121417645-1111088910=:17091
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

Hello,

Welcome to this mailing list.

On Thu, 17 Mar 2005, Jean-Michel POURE wrote:
> First of all, thanks for this great work on po4a.

Many thanks :)

[...]
> I am trying to use po4a to translate the docbook XML source files.
>
> The command line is :
> po4a-gettextize -M utf-8 -f docbook \
> -m introduction.docbook -p introduction.pot
>
> It works well, except for dbhtml XML extensions.
>
> For example, the following text is not parsed :
>
> *************************************************************************=
***********
> <chapter id=3D"introduction">
> <? dbhtml filename=3D"introduction.html" ?>
> <title>Introduction</title>
> <section><title>Les origines de l'=E9tude</title>
> *************************************************************************=
***********
>
> But the following text is parsed like a charm :
>
> *************************************************************************=
***********
> <chapter id=3D"introduction">
> <title>Introduction</title>
> <section><title>Les origines de l'=E9tude</title>
> *************************************************************************=
***********
>
> I tried to send options to the parser using -o, but did not succeed. Any
> solution to skip <? dbhtml filename=3D"introduction.html" ?> ?

The processing instructions ( <? ... ?> ) aren't currently defined in the=
=20
XML parser, so it simply breaks when it finds them. I think I'll try to=20
simply ignore them, because I don't know of any case of translateable=20
strings inside of them.

I'll commit a patch soon.

Regards,

Jordi Vilalta
---1463811584-1121417645-1111088910=:17091--