This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

passivetex reading xslt fo file?


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?

I have read in the mailing list archive that the "old" DSSSL-Toolchain
is more mature. Does this still hold, and am I better off in using the
old toolchain? However, openjade takes 13 seconds to process my 1.4
Kbyte XML file to HTML, and even longer for the FO conversion.

Which toolchain is the recommended way for PDF creation from docbook
XML sources at this very moment?

Any hints will be appreciated.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Karlsruhe, Germany |  lose things."    Winona Ryder | Fon: *49 721 966 32 15
Nordisch by Nature |  How to make an American Quilt | Fax: *49 721 966 31 29


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]