Unresolved entities
Jean-Christophe Helary <[email protected]> Wed, 7 Dec 2022 15:06:21 +0900
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
(not sure whether the best list to post this is docbook@ or =
docbook-app@)
I=E2=80=99m using this code to reference an entity:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"../../../docbook-xml-4.5/docbookx.dtd"
[<!ENTITY % manualvariables SYSTEM "manualvariables.mod"> =
%manualvariables;]>
<book lang=3D"en" id=3D"book.user.guide">
<bookinfo>
<title id=3D"book.user.guide.title">OmegaT &vernb; - User =
Guide</title>
<pubdate>@timestamp@</pubdate>
<!-- TODO automate date insertion -->
<abstract>
<para>This document is the official user guide to OmegaT, the free
Computer-Assisted Translation tool.</para>
</abstract>
</bookinfo>
The rest of the document is a list of <xi:include ...> references.
The manualvariables.mod file is at the same level and it contains:
<!ENTITY vernb "5.8.0">
When I run the build (ant) I get this error message:
include:
[exec] en/OmegaTUsersManual_xinclude full.xml:7: parser error : =
Entity 'vernb' not defined
[exec] <title id=3D"book.user.guide.title">OmegaT &vernb; - =
User Guide</title>
[exec] ^
The index.xml that=E2=80=99s produced contains the following:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" =
"../../../docbook-xml-4.5/docbookx.dtd" [
<!ENTITY % manualvariables SYSTEM "manualvariables.mod">
(. . .)
<!ENTITY vernb "5.8.0">
(. . .)
]>
<book lang=3D"en" id=3D"book.user.guide">
<bookinfo>
<title id=3D"book.user.guide.title">OmegaT &vernb; - User =
Guide</title>
<pubdate>@timestamp@</pubdate>
<!-- TODO automate date insertion -->
<abstract>
<para>This document is the official user guide to OmegaT, the free
Computer-Assisted Translation tool.</para>
</abstract>
</bookinfo>
And the HTML properly outputs the version number.
I=E2=80=99m using plenty of entities in that file set.
Why is the process unhappy about that declaration?
Is there a way to *not* generate that error?
--=20
Jean-Christophe Helary @[email protected]
https://traductaire-libre.org
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/