(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 @jchel...@emacs.ch
https://traductaire-libre.org
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org

Reply via email to