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]

Re: PassiveTeX broken under 1.52.2?


I haven't had any joy with the xsltproc -- passivetex chain
for ages, I think it worked on xsltproc 1.0.18 and docbook-xsl 1.51.1
but after that passivetex just choked on the fo output, and
that image problem is still around so at the moment I am
using openjade for print output (and html output with images).
I think there is something seriously broken somewhere in the
chain (I hear cries of "yes you" here, ;)).  Hopefully I might
get some time to investigate soon...

AM
----- Original Message -----
From: "Alex Lancaster" <alexl@users.sourceforge.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, July 22, 2002 2:18 PM
Subject: DOCBOOK-APPS: PassiveTeX broken under 1.52.2?


> Has anybody had any luck at all with PassiveTeX and 1.52.2 of the
> stylesheets?  I have yet to be able to produce the most miminal
> document using PassiveTeX.  I'm using:
>
> xsltproc (libxml2 2.4.19/ libxslt 1.0.15)
> passivetex (1.12)
>
> From Norm's changelog, I've noticed a considerable amount of changes
> (to the "pagesetup.xsl" template, in particular), that seems to break
> PassiveTeX completely.
>
> I am aware of the font family problem (as reported earlier on the
> list), in that PassiveTeX can't handle the fallbacks, and I have a
> stylesheet that handles that, text.xsl:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                 version='1.0'>
>
>   <xsl:import
>
href="http://docbook.sourceforge.net/release/xsl/1.52.2/fo/docbook.xsl"/>
>
>  <!-- override these because PassiveTeX doesn't handle fallback fonts
>  -->
>
>  <xsl:param name="body.font.family">Helvetica</xsl:param>
>  <xsl:param name="title.font.family">Helvetica</xsl:param>
>  <xsl:param name="monospace.font.family">Courier</xsl:param>
>  <xsl:param name="sans.font.family">Helvetica</xsl:param>
>  <xsl:param name="dingbat.font.family">Times Roman</xsl:param>
>
> </xsl:stylesheet>
>
> So I can workaround that particular PassiveTeX quirk.  But PassiveTeX
> barfs on the most simple of XML files, (after producing the .fo file),
> e.g. "test.xml":
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
> <article condition="main">
>  <title>test</title>
>
>  <itemizedlist>
>   <listitem>
>    <formalpara>
>     <title>title</title>
>    <para>Some problem</para>
>    </formalpara>
>   </listitem>
>  </itemizedlist>
>
> </article>
>
> After producing the FO file:
>
> $ xsltproc test.xsl test.xml > test.fo
>
> (which incidentally looks well-formed according to "xmllint")
>
> I get errors that look like this:
>
> $ xmlto pdf test.fo
>
> [... elided output ...]
>
>          <5:block  >
>          </5:block>
>         </5:table-cell>
>         Grabbed content
>          <5:block  >
>          </5:block>
>         End Grabbed content
> ! Missing \endgroup inserted.
> <inserted text>
>                 \endgroup
> l.2 ...y></fo:list-item></fo:list-block></fo:flow>
>
</fo:page-sequence></fo:root>
>
> ?
> ! Emergency stop.
> <inserted text>
>                 \endgroup
> l.2 ...y></fo:list-item></fo:list-block></fo:flow>
>
</fo:page-sequence></fo:root>
>
> No pages of output.
> Transcript written on test.log.
>
> I would attach the test.fo, but it's 400 lines long (after
> reindenting), which interesting enough, compares with only 118 for the
> test.fo file under 1.51.1.  The FO output with 1.52.2 seems
> considerably more verbose.
>
> Did anybody have a chance to test PassiveTeX support for 1.52.2 on the
> most minimal DocBook file, or is it (as I'm hoping) a simple problem
> at my end.  In any case, is there a simple workaround?
>
>


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