> On Dec 7, 2022, at 18:52, Norm Tovey-Walsh <[email protected]> wrote:
> 
>> 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]                                                     ^
> 
> XIncluded documents, unlike external parsed entities, are parsed
> entirely separately. If you want &vernb; to resolve in
> en/OmegaTUsersManual_xinclude full.xml, you’ll 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="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>
...

↑↑↑↑
That is the beginning of OmegaTUsersManual_xinclude full.xml.

line 7 in the error message refers to: 

   <title id="book.user.guide.title">OmegaT &vernb; - User Guide</title>

JC

>> The index.xml that’s produced contains the following:
> 
> I don’t really understand how any output is being produced given the
> parse error.
> 
>                                        Be seeing you,
>                                          norm
> 
> --
> Norman Tovey-Walsh <[email protected]>
> https://nwalsh.com/
> 
>> Be indiscrete. Do it continuously.

-- 
Jean-Christophe Helary @[email protected]
https://traductaire-libre.org
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to