[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: passivetex reading xslt fo file?
On Wed, Jun 12, 2002 at 02:35:31PM +0200, Marc Haber wrote: > Hi, > > I have a test "book" written in docbook-xml and use xsltproc to > generate HTML from that book. Works fine. > > Now I would like to make a PDF file from the docbook, while avoiding > jade and any java code. So I settled on passivetex, which was a bitch > to install. I am running Debian unstable, which has tetex as its tex > distribution. Since writing documents is not my main job, I'd like to > stick with the TeX that comes with our distribution instead of using > TeXlive as it is usually recommended. > > My passivetex can now convert the teiu5.fo to a correct pdf file, so > at least I did this right. > > Now to convert my own test docbook. > > $ xsltproc -o firstdocbook.fo /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl firstdocbook.xml > Making portrait pages on USletter paper (8.5inx11in) > $ ls -al firstdocbook* > -rw-rw-r-- 1 haber haber 13k Jun 12 12:11 firstdocbook.fo > -rw-rw-r-- 1 haber haber 1.3k Jun 11 16:52 firstdocbook.xml > $ pdflatex "&pdfxmltex" firstdocbook.fo > This is pdfTeX, Version 3.14159-1.00a-pretest-20011114-ojmw (Web2C 7.3.7) > (./firstdocbook.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: 2000/09/07 v1.8y (Exp): > (/usr/share/texmf/tex/xmltex/base/xmltex.cfg) > No File: firstdocbook.cfg > xmlns:fo = 5 > <5:root (/home/haber/.tetex/texmf/tex/latex/passivetex/fotex.xmt > > URI: 6 = http://www.tug.org/fotex > xmlns:fotex = 6 > xmlns:fo = 5 > </0:> > > [snip] > > <5:conditional-page-master-reference > 0:master-name = "left2" > 0:odd-or-even = "even" > > > </5:conditional-page-master-reference> > > </5:repeatable-page-master-alternatives> > </5:page-sequence-master> > </5:layout-master-set> > <5:page-sequence > 0:id = "id2773334" > 0:hyphenate = "true" > 0:master-name = "titlepage1" > 0:language = "en" > > <5:flow > 0:flow-name = "xsl-region-body" > > ! Missing \endcsname inserted. > <to be read again> > \Odd: > l.85 <fo:flow flow-name="xsl-region-body"> > > ? > > The probably relevant part of the fo file reads: > <fo:page-sequence-master master-name="twoside2"> > <fo:repeatable-page-master-alternatives> > <fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/> > <fo:conditional-page-master-reference master-name="right2" odd-or-even="odd"/> > <fo:conditional-page-master-reference master-name="left2" odd-or-even="even"/> > </fo:repeatable-page-master-alternatives> > </fo:page-sequence-master> > </fo:layout-master-set> > <fo:page-sequence id="id2773334" hyphenate="true" master-name="titlepage1" language="en"> > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <fo:block font-family="Helvetica" font-weight="bold" font-size="24.8832pt" text-align="center" space-before="18.6624pt"> > <fo:block keep-with-next.within-column="always" hyphenate="false">Simple XML Sample Document</fo:block> > </fo:block> > <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" text-align="center" space-before="10.8pt" keep-with-next="always">John Doe</fo:block> > <fo:block break-after="page"/> > > Do I understand correctly that xsltproc wrote a fo file that > passivetex can't read? Can this issue be fixed? No, the fo file is ok, because the TexLive 7 version of PassiveTeX can process the fo output from xsltproc. The problem is likely the TeX setup. I have only had success with PassiveTeX using TexLive. It is theoretically possible to add the PassiveTeX updates to an existing TeX installation, but my attempts to do that so far lead to failures with obscure errors like you have seen. Enabling the DocBook XSL passivetex extensions won't help here. Currently the only passivetex extension has to do with handling of dashes. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC