Tables don't appear in PDF generated by Fop on the following two
platforms:

 - Intel PIII, debian testing, Blackdown java 2 sdk 1.3.1, saxon
   6.4.4, Fop 0.20.3rc, DocBook 4.1.2, DocBook XSL 1.48

 - Intel PIII, RedHat 7.2, JDK 1.3.1, saxon 6.5, Fop 0.20.3rc, DocBook
   4.1.2, DocBook XSL 1.48

Has anyone seen something similar?  And do they know what to do, to
fix it?  I have searched on the list archives, and seen similar error
messages, but I haven't stumbled over a cure that will work, yet.

Thanx for any and all hints!

I have tried using a document containing the example table at the end
of
        <http://www.docbook.org/tdg/en/html/table.html>
and the table doesn't appear in the resulting PDF.

The DocBook source, the intermediate XSL-FO file, the Makefile used to
generate FO and PDF, two local XSL files, and the PDF result, are
attached at the end of this file.

The output I get, is:

cd /home/sba/cvs/projects/tps/doc/xml/
make -k 
saxoncat -S --CP /var/www/xml/styles/docbook-xsl-1.48/extensions/saxon644.jar 
-o table_test.html table_test.xml local-html.xsl
saxoncat -S --CP /var/www/xml/styles/docbook-xsl-1.48/extensions/saxon644.jar 
-o table_test.fo table_test.xml local-fo.xsl
Making portrait pages on A4 paper (210mmx297mm)
Fop table_test.fo table_test.pdf
[INFO]: FOP 0.20.3rc
[INFO]: building formatting object tree
[ERROR]: Error in column-width property value '20%': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR]: Error in column-width property value '20%': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR]: Error in column-width property value '20%': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR]: Error in column-width property value '20%': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR]: Error in column-width property value '20%': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer

Compilation finished at Thu Apr  4 10:50:23






<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://no-video6/xml/dtds/docbook4.1.2/docbookx.dtd"; []>

<?xml-stylesheet type="text/css" href="http://no-video6/xml/styles/docbook.css";?>

<?xml-stylesheet href="http://no-video6/xml/styles/docbook-xsl-1.48/html/docbook.xsl"; type="text/xsl"?>

<article>
  <para>Hi before!</para>

  <para><table frame='all'><title>Sample Table</title>
<tgroup cols='5' align='left' colsep='1' rowsep='1'>
<colspec colname='c1'/>
<colspec colname='c2'/>
<colspec colname='c3'/>
<colspec colnum='5' colname='c5'/>
<thead>
<row>
<entry namest="c1" nameend="c2" align="center">Horizontal Span</entry>
<entry>a3</entry>
<entry>a4</entry>
<entry>a5</entry>
</row>
</thead>
<tfoot>
<row>
<entry>f1</entry>
<entry>f2</entry>
<entry>f3</entry>
<entry>f4</entry>
<entry>f5</entry>
</row>
</tfoot>
<tbody>
<row>
<entry>b1</entry>
<entry>b2</entry>
<entry>b3</entry>
<entry>b4</entry>
<entry morerows='1' valign='middle'><para> <!-- Pernicous Mixed Content -->
Vertical Span</para></entry>
</row>
<row>
<entry>c1</entry>
<entry namest="c2" nameend="c3" align='center' morerows='1' valign='bottom'>Span Both</entry>
<entry>c4</entry>
</row>
<row>
<entry>d1</entry>
<entry>d4</entry>
<entry>d5</entry>
</row>
</tbody>
</tgroup>
</table></para>

  <para>Hi after!</para>

</article>
<?xml version="1.0" encoding="utf-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; font-family="Times Roman" font-size="10pt" text-align="justify" line-height="normal" language="en"><fo:layout-master-set><fo:simple-page-master master-name="blank" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-blank" extent="12pt"/><fo:region-after region-name="xsl-region-after-blank" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="simple1" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body margin-bottom="24pt" margin-top="24pt"/><fo:region-before extent="12pt"/><fo:region-after extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="left1" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"><fo:region-body margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-left" extent="12pt"/><fo:region-after region-name="xsl-region-after-left" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="right1" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-right" extent="12pt"/><fo:region-after region-name="xsl-region-after-right" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="first1" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-first" extent="12pt"/><fo:region-after region-name="xsl-region-after-first" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="simple2" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/><fo:region-before extent="12pt"/><fo:region-after extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="left2" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"><fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-left" extent="12pt"/><fo:region-after region-name="xsl-region-after-left" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="right2" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-right" extent="12pt"/><fo:region-after region-name="xsl-region-after-right" extent="12pt"/></fo:simple-page-master><fo:simple-page-master master-name="first2" page-width="210mm" page-height="297mm" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"><fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/><fo:region-before region-name="xsl-region-before-first" extent="12pt"/><fo:region-after region-name="xsl-region-after-first" extent="12pt"/></fo:simple-page-master><fo:page-sequence-master master-name="titlepage1"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="first1"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="oneside1"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="simple1"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="twoside1"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="blank" blank-or-not-blank="blank"/><fo:conditional-page-master-reference master-reference="right1" odd-or-even="odd"/><fo:conditional-page-master-reference master-reference="left1" odd-or-even="even"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="titlepage2"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="first2"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="oneside2"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="simple2"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master><fo:page-sequence-master master-name="twoside2"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="blank" blank-or-not-blank="blank"/><fo:conditional-page-master-reference master-reference="right2" odd-or-even="odd"/><fo:conditional-page-master-reference master-reference="left2" odd-or-even="even"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence id="d0e3" hyphenate="true" master-reference="oneside1" language="en"><fo:static-content flow-name="xsl-region-after"><fo:block text-align="center" font-size="10pt"><fo:page-number/></fo:block></fo:static-content><fo:flow flow-name="xsl-region-body"><fo:block/><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Hi before!</fo:block><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"><fo:block span="none"><fo:table-and-caption space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em" keep-with-previous.within-column="always" id="d0e7" keep-together.within-column="1"><fo:table-caption><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" font-weight="bold" font-size="12pt" hyphenate="false" keep-with-next.within-column="always">Table 1. Sample Table</fo:block></fo:table-caption><fo:table border-left-style="solid" border-right-style="solid" border-top-style="solid" border-bottom-style="solid" width="100%"><fo:table-column column-number="1" column-width="20%"/><fo:table-column column-number="2" column-width="20%"/><fo:table-column column-number="3" column-width="20%"/><fo:table-column column-number="4" column-width="20%"/><fo:table-column column-number="5" column-width="20%"/><fo:table-header><fo:table-row><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt" number-columns-spanned="2" text-align="center"><fo:block>Horizontal Span</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>a3</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>a4</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>a5</fo:block></fo:table-cell></fo:table-row></fo:table-header><fo:table-footer><fo:table-row><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>f1</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>f2</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>f3</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>f4</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>f5</fo:block></fo:table-cell></fo:table-row></fo:table-footer><fo:table-body><fo:table-row><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>b1</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>b2</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>b3</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>b4</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt" number-rows-spanned="2" display-align="center"><fo:block><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"> 
Vertical Span</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>c1</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt" number-rows-spanned="2" number-columns-spanned="2" display-align="after" text-align="center"><fo:block>Span Both</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>c4</fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>d1</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>d4</fo:block></fo:table-cell><fo:table-cell padding="2pt" border-right-width="0.5pt" border-right-style="solid" border-right-color="black" padding-right="2pt" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black" padding-bottom="2pt"><fo:block>d5</fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:table-and-caption></fo:block></fo:block><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Hi after!</fo:block></fo:flow></fo:page-sequence></fo:root>
#
# Make HTML, and XSL-FO, from .xml
#

# The list of XML files to be transformed (top level documents)
XMLSOURCES= \
        table_test.xml

# Where to find the DocBook style sheets
HTMLSTYLE=local-html.xsl
FOSTYLE=local-fo.xsl

# Implicit rules

PLATFORM=$(if $(shell which saxoncat 2>/dev/null),debian,redhat)

ifeq ($(PLATFORM),debian)
SAXONEXT_CP=/var/www/xml/styles/docbook-xsl-1.48/extensions/saxon644.jar
SAXON=saxoncat -S --CP $(SAXONEXT_CP)
endif

ifeq ($(PLATFORM),redhat)
SAXON_CP=/usr/share/java/classes/saxon/saxon.jar
SAXONEXT_CP=/var/www/html/xml/styles/docbook-xsl-1.48/extensions/saxon65.jar
SAXON=java -cp $(SAXONEXT_CP):$(SAXON_CP) com.icl.saxon.StyleSheet
endif

# XML -> HTML
%.html: %.xml
        $(SAXON) -o $@ $< $(HTMLSTYLE)

# XML -> FO
%.fo: %.xml
        $(SAXON) -o $@ $< $(FOSTYLE)

# FO -> PDF
%.pdf: %.fo
        Fop $< $@

# ZIP files containing both .html and .pdf
%.zip: %.pdf %.html
        zip -9 $@ $?

# Calculate target files
HTMLFILES=$(patsubst %.xml,%.html,$(XMLSOURCES))
FOFILES=$(patsubst %.xml,%.fo,$(XMLSOURCES))
PDFFILES=$(patsubst %.xml,%.pdf,$(XMLSOURCES))
ZIPFILES=$(patsubst %.xml,%.zip,$(XMLSOURCES))


# Here are the targets
all: html pdf

html: $(HTMLFILES)

pdf: $(PDFFILES)

fo: $(FOFILES)

zip: $(ZIPFILES)

clean:
        $(RM) *.html *.fo *.pdf *.zip

# Dependencies
PORTAL_LIB_TARGETS=portal_libraries.pdf portal_libraries.html
$(PORTAL_LIB_TARGETS): a.txt

clean2:
        $(RM) $(PORTAL_LIB_TARGETS) portal_libraries.fo
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version='1.0'
                xmlns="http://www.w3.org/TR/xhtml1/transitional";
                exclude-result-prefixes="#default">


  <!-- Changes to defaults -->
  <xsl:param name="use.extensions" select="'1'" />
  <xsl:param name="textinsert.extension" select="'1'" />

</xsl:stylesheet>
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version='1.0'
                xmlns="http://www.w3.org/TR/xhtml1/transitional";
                exclude-result-prefixes="#default">

  <xsl:import href="http://no-video6/xml/styles/docbook-xsl-1.48/fo/docbook.xsl"/>
  <xsl:import href="local-common.xsl"/>

  <!-- Changes to defaults -->
  <xsl:param name="paper.type" select="'A4'" />

</xsl:stylesheet>

Reply via email to