I am trying to render a P4 document to PDF using Sebastian's PassiveTex
stylesheets (version 5.2.9).
Error: pdfxmltex (file para1.png): cannot find image file
==> Fatal error occurred, the output PDF file is not finished.
The reason it cannot find the file (which does not have a .png
extension) is that it is not reading:
<!ENTITY % figures SYSTEM "figures.ent"> %figures;
From the teilite.dtd, and para1 is defined (in figures.ent) as:
<!ENTITY para1 SYSTEM "Paragraph_example.gif" NDATA GIF>
This image file is in the same directory as the XML file and where I am
generating the .fo file.
The files, teilite.dtd, figures.ent, the source XML file are all located
in the same directory.
Seems to me the stylesheet should be picking up the entity declaration
from the DTD and resolving it (when it generates the .fo file), but
apparently that is not happening. (Note: An earlier version of the
stylesheets did this quite well with HTML output.)
Any suggestions or workarounds would be greatly appreciated!
Hope everyone is having a great weekend!
PS: I looked at the P5 Guidelines since this is just straight text to
see if using P5 would make any difference. Note that while the entity
mechanism is described, all the examples use a "url" attribute and no
entity references. And, apparently the figure element only has global
attributes. It looks like this section needs some work to conform the
examples to the text.
Sorry, I don't have time today to do anything other than to note the
problem. As soon as I get past this week, yes, the PDF file is a
deliverable *early* this week, ;-), I have to bounce into an ISO draft
that will take me into early February. But, I have been promising myself
a block of days with P5 and so after the ISO draft leaves I will try to
give the current P5 documentation a close reading.
PPS: I installed ProTeXt from the TEX Collection 2005 DVD and recommend
the DVD to anyone interested in TeX and/or using TeX/LaTeX with XML. (A
two CD version is also available. See http://www.tug.org)
[log in to unmask]
Chair, V1 - Text Processing: Office and Publishing Systems Interface
Co-Editor, ISO 13250, Topic Maps -- Reference Model
Member, Text Encoding Initiative Board of Directors, 2003-2005
Topic Maps: Human, not artificial, intelligence at work!