Hello,

I recently focused on using internal DocBook->FO routines in XXE, as I  
normally use built in scripts, and I think that XXE is doing way to  
much with all this copying image files, callouts, etc.
I think all of this is unnecessary.

1) Temporary FO (.fo) file can be created next to existing DocBook  
file (we don't really need to copy all into /tmp)
2) Embedded graphics doesn't need to be copied! It is simply enough to  
set CWD to folder where DocBook file resides, as FOP is taking CWD  
when inserting relative paths
3) Callout graphics doesn't need to be copied as well, its path can be  
set dynamically with "admon.graphics.path" relative to DocBook  
installation

All of this slows down the conversion process, also makes problematic  
also using SVG admon graphics.

I'm attaching my batch scripts you may find useful:
- config.xml - FOP config
- db2pdf + db2pdf.bat - Unix & Windows version of script using  
xsltproc and fop to make PDF
- db2pdf.xsl - XSL configuration file for DocBook XSL

Maybe you find them inspiring ;P

-------------- next part --------------
A non-text attachment was scrubbed...
Name: db2pdf.bat
Type: application/octet-stream
Size: 794 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080220/bf1ebf61/attachment.dll
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db2pdf.xsl
Type: application/octet-stream
Size: 5764 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080220/bf1ebf61/attachment-0001.dll
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.xml
Type: text/xml
Size: 9072 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080220/bf1ebf61/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db2pdf
Type: application/octet-stream
Size: 1032 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080220/bf1ebf61/attachment-0002.dll
 
-------------- next part --------------


Cheers,
-- 
Adam Strzelecki |: nanoant.com :|

Reply via email to