add --load-dtd option 4
authorGalen Charlton <gmc@esilibrary.com>
Wed, 29 Aug 2012 14:21:37 +0000 (10:21 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 29 Aug 2012 14:26:00 +0000 (10:26 -0400)
commit34cc26b03424cd3ac72c041c8b576000ce2011d2
treefbe0837643085d1b8b29e275a0feaca3ff679ba1
parent7ee29a46d229bde60c86703730b24d5ac49a1e75
add --load-dtd option

This option tells itstool to load external DTDs when
parsing the document to be translated.  This prevents
errors when the document includes entity references defined
in those DTDs.

Note that externally-defined entity refs still cannot be used
in translated strings in the PO files.

Also note that this adds test cases that require either
network access or updating the local XML catalog to
including the DocBook DTDs.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
itstool.in
tests/IT-uses-external-dtds.ll.po [new file with mode: 0644]
tests/IT-uses-external-dtds.ll.xml [new file with mode: 0644]
tests/IT-uses-external-dtds.pot [new file with mode: 0644]
tests/IT-uses-external-dtds.xml [new file with mode: 0644]
tests/run_tests.py