Re: Unresolved entities
Jean-Christophe Helary <[email protected]> Wed, 7 Dec 2022 19:15:48 +0900
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
> On Dec 7, 2022, at 18:52, Norm Tovey-Walsh <[email protected]> wrote: >=20 >> When I run the build (ant) I get this error message: >>=20 >> 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] ^ >=20 > XIncluded documents, unlike external parsed entities, are parsed > entirely separately. If you want &vernb; to resolve in > en/OmegaTUsersManual_xinclude full.xml, you=E2=80=99ll have to put the > DOCTYPE declaration and the entity reference to manualvariables.mod > in that file. That's the file I quoted. Sorry for not making that clear: <?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> ... =E2=86=91=E2=86=91=E2=86=91=E2=86=91 That is the beginning of OmegaTUsersManual_xinclude full.xml. line 7 in the error message refers to:=20 <title id=3D"book.user.guide.title">OmegaT &vernb; - User = Guide</title> JC >> The index.xml that=E2=80=99s produced contains the following: >=20 > I don=E2=80=99t really understand how any output is being produced = given the > parse error. >=20 > Be seeing you, > norm >=20 > -- > Norman Tovey-Walsh <[email protected]> > https://nwalsh.com/ >=20 >> Be indiscrete. Do it continuously. --=20 Jean-Christophe Helary @[email protected] https://traductaire-libre.org https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/