Jorge Vargas G wrote:
> Your answer agrees with my theory, i'm using a trick: To generate my .pdf
> and .rtf files run an script that change "/>" by "></--MANUAL_CHANGE-->".
> When the process had finished then this comment is changed like original
> was.
>
> I tried to see a command line to fixed but it's not obvious.
I've installed the DSSSL toolset (openjade, jadetex, opensp, the style
sheets, the catalogs, the DTDs, etc) for formatting XML DocBook
documents on my SuSE Linux 8.2 machine.
I managed to format the Power User's Guide, a DocBook XML document,
using this attached script. I just had to convert all screenshots from
GIF to PNG and then to modify the Power User's Guide source files
accordingly.
---
#!/bin/sh
if [ $# != 1 ]; then
echo "usage: docbtopdf xml_file"
exit 1
fi
if [ ! -f $1 ]; then
echo "usage: docbtopdf xml_file"
exit 1
fi
base_name=`basename $1 .xml`
dir_name=`dirname $1`
tex_file=$dir_name/$base_name.tex
aux_file=$dir_name/$base_name.aux
log_file=$dir_name/$base_name.log
out_file=$dir_name/$base_name.out
# CATALOG.iso_ent = *SGML* ISO entities are needed by DSSSL.
SGML_CATALOG_FILES=/usr/share/sgml/CATALOG.iso_ent:/usr/share/sgml/CATALOG.db42xml:/usr/share/sgml/CATALOG.db41xml:/usr/share/sgml/CATALOG.openjade:/usr/share/sgml/CATALOG.docbkdsl
export SGML_CATALOG_FILES
openjade \
-V "%section-autolabel%" \
-V "%chapter-autolabel%" \
-t tex \
-d /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl \
$1
pdfjadetex $tex_file
# Another time for TOC, etc
pdfjadetex $tex_file
rm -f $tex_file $aux_file $log_file $out_file
---
It works fine for XML because I used CATALOG.db41xml which starts with
---
OVERRIDE YES
DTDDECL "-//OASIS//DTD DocBook XML V4.1.2//EN"
/usr/share/sgml/opensp/xml.dcl
---
I think that it is xml.dcl which learns to the SGML parser how to parse XML.
The ouput of the DSSSL toolset is pretty decent (much better than with
FOP). The only problem I didn't solved is that screenshots are much too
large in the generated PDF.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: docbtopdf
Url:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030902/3f673ae5/attachment.bat