[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Unresolved entities
(not sure whether the best list to post this is docbook@ or docbook-app@) Iâm using this code to reference an entity: <?xml version="1.0" encoding="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="en" id="book.user.guide"> <bookinfo> <title id="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="book.user.guide.title">OmegaT &vernb; - User Guide</title> [exec] ^ The index.xml thatâs produced contains the following: <?xml version="1.0" encoding="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="en" id="book.user.guide"> <bookinfo> <title id="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âm 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? -- Jean-Christophe Helary @jchelary@emacs.ch https://traductaire-libre.org https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]