thanks!tempest wrote:I just clicked on the edit button relative to the first post and changed the subject. Maybe you were trying to modify the subject of a topic started by someone else instead: in that case I think you have to notify a mod that a topic is solved, and he will do that for you.

I have the same versions as above, but my output looks like this:g1ul10 wrote:Hi All,
I've been able to obtain a pdf file from the sample xml file posted by tempest using xmlto. The command line isgenerating the following oputputCode: Select all
xmlto -v pdf sample.xmland the file 'sample.pdf' which seems OK.Code: Select all
Format script: /usr/share/xmlto/format/docbook/pdf Convert to XSL-FO Real stylesheet: http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl xmllint >/dev/null --xinclude --postvalid /home/giulio/work/software/gbutils/sample.xml Stylesheet: /tmp/xmlto-xsl.5aqwT5 xsltproc --nonet --xinclude \ -o /tmp/xmlto.O1l6W8/sample.proc \ /tmp/xmlto-xsl.5aqwT5 \ /home/giulio/work/software/gbutils/sample.xml Making portrait pages on A4 paper (210mmx297mm) Post-process XSL-FO to PDF xmlto -v pdf sample.xml 10.21s user 0.33s system 88% cpu 11.918 total
I've the following installed
- app-text/xmlto-0.0.15
dev-tex/xmltex-1.9
app-text/passivetex-1.25
dev-libs/libxslt-1.1.9-r1
Code: Select all
Format script: /usr/share/xmlto/format/docbook/pdf
Convert to XSL-FO
Real stylesheet: http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl
xmllint >/dev/null --xinclude --postvalid /home/soren/tmp/sample.xml
Stylesheet: /tmp/xmlto-xsl.isJEG9
xsltproc --nonet --xinclude \
-o /tmp/xmlto.yhCt5c/sample.proc \
/tmp/xmlto-xsl.isJEG9 \
/home/soren/tmp/sample.xml
Making portrait pages on A4 paper (210mmx297mm)
Post-process XSL-FO to PDF
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
No File: tmp.cfg (/usr/share/texmf/tex/passivetex/fotex.xmt)
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/passivetex/fotex.sty
)
No file tmp.aux.
(/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd)
(/usr/share/texmf/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/latex/psnfss/t1ptm.fd)
No file tmp.out.
No file tmp.out.
INFO: Using normal, i.e. nonfrench-spacing in document
(/usr/share/texmf/tex/latex/psnfss/t1phv.fd)
(/usr/share/texmf/tex/latex/psnfss/t1pcr.fd)
! TeX capacity exceeded, sorry [save size=5000].
\utfeight@protect@chars ...\string ##3\string ##4}
l.215 .../fo:block></fo:table-cell></fo:table-row>
<fo:table-row><fo:table-ce...
No pages of output.
Transcript written on tmp.log.

Code: Select all
snob@athlon docbook $ xmlto pdf syncdemo.docbook
Making portrait pages on USletter paper (8.5inx11in)
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg}
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
! I can't find file `tmp.cfg'.
\@filef@und ->\jobname .cfg
...
l.1
<?xml version="1.0"?>
Please type another input file name:
! Emergency stop.
\@filef@und ->\jobname .cfg
...
l.1
<?xml version="1.0"?>
No pages of output.
Transcript written on tmp.log.
snob@athlon docbook $
Code: Select all
[ebuild R ] app-text/xmlto-0.0.18 0 kB
[ebuild R ] dev-tex/xmltex-1.9-r1 0 kB
[ebuild R ] app-text/passivetex-1.25 0 kB
[ebuild R ] app-text/opensp-1.5.1 +nls 0 kB
Code: Select all
xmlto -v pdf sample.xml
Code: Select all
xmlto --extensions -v pdf sample.xml
new gentoo install... i have the same problem as original topic, now one year later:tempest wrote:You're the man! That was the ticket, I had already noticed the --enable-http option but only in openjade's ebuild, and it didn't come to my mind that opensp could have such an option too.tigrezno wrote:please, emerge opensp 1.5.1, it uses --enable-http that 1.5-r1 (Stable) don't use, or add --enable-http to 1.5-r1 ebuild.
To summarize it all up, here's the patch for opensp-1.5-r1.ebuild:
If someone of the devs is looking: could this one be officially added to the portage tree? I don't feel like reporting in bugzilla since it's not a real bug of the ebuild...Code: Select all
@@ -37,6 +37,7 @@ # Detect mips systems properly gnuconfig_update + myconf="${myconf} --enable-http" myconf="${myconf} --enable-default-catalog=/etc/sgml/catalog" myconf="${myconf} --enable-default-search-path=/usr/share/sgml" myconf="${myconf} --datadir=/usr/share/sgml/${P}"
For those not willing to read the whole topic: there's no docbook integration trouble in Gentoo, the problem was an unspecified option to opensp configure in the relative x86 ebuild, and that option is already present in the opensp ebuild currently in ~x86.tigrezno wrote:The reason is just simple, you should not depend on internet conection to generate your content when you have the same catalog in your hard disk. If your conection goes down, then you can't generate content, is this good? i don't think so, but it's only my opinion.
I'm marking this one as [solved].
Code: Select all
docbook2pdf esp_howto.xml
Using catalogs: /usr/share/sgml/sgml-iso-entities-8879.1986/catalog, /usr/share/sgml/xml-iso-entities-8879.1986/catalog, /usr/share/sgml/opensp-1.5.1/OpenSP/catalog, /usr/share/sgml/openjade-1.3.2/catalog, /usr/share/sgml/openjade-1.3.2/dsssl/catalog, /usr/share/sgml/docbook/sgml-dtd-4.1/catalog, /usr/share/sgml/docbook/sgml-dtd-4.0/catalog, /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog, /usr/share/sgml/docbook/sgml-dtd-3.0/catalog, /usr/share/sgml/docbook/sgml-dtd-3.1/catalog, /usr/share/sgml/docbook/xml-simple-dtd-4.1.2.4/catalog, /usr/share/sgml/docbook/xml-simple-dtd-1.0/catalog
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /home/erock/hacks/pstools/esp/docbook/esp_howto.xml
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/docbook.dsl:53:136:Q: number of ID references in start-tag must not exceed GRPCNT (32)
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/docbook.dsl:52:0:Q: number of ID references in start-tag must not exceed GRPCNT (32)
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/../common/../common/dbl1bg.ent:168:282:Q: length of interpreted parameter literal must not exceed LITLEN (240)
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/../common/../common/dbl1bg.ent:169:282:Q: length of interpreted parameter literal must not exceed LITLEN (240)
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/../common/../common/dbl1ru.ent:188:290:Q: length of interpreted parameter literal must not exceed LITLEN (240)
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/../common/../common/dbl1ru.ent:189:290:Q: length of interpreted parameter literal must not exceed LITLEN (240)
Done.
Code: Select all
[ebuild N ] app-text/xmlto-0.0.18 89 kB
[ebuild N ] dev-tex/xmltex-1.9-r1 108 kB
[ebuild N ] app-text/passivetex-1.25 1,162 kB
[ebuild R ] app-text/opensp-1.5.1 -nls 1,385 kB
I used this fix to solve my problem (listed above).nemo_ wrote:i'm really not sure if this would help but did you check http://dev.gentoo.org/~satai/sgmlfix.html ?