[Po4a-devel] po4a with xml ISO ents

Dongsheng Song dongsheng.song at gmail.com
Sat Apr 4 13:08:59 UTC 2009


2009/4/4 Nicolas François <nicolas.francois at centraliens.net>:
> On Fri, Apr 03, 2009 at 06:14:40PM +0800, dongsheng.song at gmail.com wrote:
>> Can po4a-updatepo expand xml ISO ents ? Or po4a-translate understand
>> xml ISO ents ?
>
> As I don't understand what an xml ISO ents is, po4a probably do not
> understand them neither ;)
>
> Can you provide an example?
>

The following two is equivalent:

  <blockquote>
    <para>A: Many of our customers want to know how they can
      maximize productivity through our patented office groupware
      innovations.  The answer is simple.  First, click on the
      <literal>File</literal> menu, scroll down to
      <literal>Increase&#xA0;Productivity</literal>,
      then&#x2026;</para>
  </blockquote>

  <blockquote>
    <para>A: Many of our customers want to know how they can
      maximize productivity through our patented office groupware
      innovations.  The answer is simple.  First, click on the
      <literal>File</literal> menu, scroll down to
      <literal>Increase&nbsp;Productivity</literal>,
      then&hellip;</para>
  </blockquote>

But po4a can't think so, since po4a can't understand ISO XML entity:
http://www.oasis-open.org/cover/xml-ISOents.txt

>> When I run po4a-updatepo, I can use 'includeexternal'. But when I run
>> po4a-translate, I must
>> run for each xml files.
>
> You should always use the same options for po4a-updatepo and
> po4a-translate.
>

I have many source xml, book.xml include those xmls use external entity.
I can use '-o includeexternal' for issue a po4a-updatepo command only.

But when I run 'po4a-translate', what's the recommanded method?
I must run po4a-updatepo for every source xml. If I run po4a-updatepo
to the pretreatment result[1], I run into ISO xml entity issues with po4a.

[1] xmllint --nonet --noent --xinclude --postvalid --output
build/source/book.xml en/source/book.xml



More information about the Po4a-devel mailing list