OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: docbook-xsl, xml->fo->pdf - table error


On Mon, Apr 01, 2002 at 03:54:02PM +0200, Lorenzo Delana wrote:
> 
> hi,
> 
> I am unable to compile a pdf file from this xml docbook file:
> 
> <?xml version='1.0'?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> "/usr/local/share/sgml/docbook-xml/docbook/docbookx.dtd" []>
> 
> <book lang="it">
>  <part>
>   <title>Parte</title>
>   <chapter>
>    <title>Capitolo</title>
>    <sect1>
>     <title>Sezione</title>
>     <para>Paragrafo</para>
>     <table>
>      <title>Tabella</title>
>      <tgroup cols="2">
>       <tbody>
>        <row>
>         <entry>x</entry>
>         <entry>y</entry>
>        </row>
>       </tbody>
>      </tgroup>
>     </table>
>    </sect1>
>   </chapter>
>  </part>
> </book>
> 
> I use these commands to do xml->fo->pdf translation, using a correct 
> installation of:
> - xsltproc and passive tex tools
> - docbook-xsl-1.50.0
> - docbook-xml V4.1.2
> 
> xsltproc -o book.fo /usr/local/share/docbook/docbook-xsl/fo/docbook.xsl 
> book.xml
> 
> xmltex book.fo
> ...
> produce these errors:
> <5:table-column 
>             0:column-number = "1"  >
> ! Illegal unit of measure (pt inserted).
> <to be read again> 
>                    0
> l.2 ...w3.org/1999/XSL/Format" column-number="1"/>
>                                                   <fo:table-column 
> xmlns:fo=...
> 
> ? 
> 
>         </5:table-column> 
>         xmlns:fo = 5 
>         <5:table-column 
>             0:column-number = "2"  >
> ! Illegal unit of measure (pt inserted).
> <to be read again> 
>                    0
> l.2 ...w3.org/1999/XSL/Format" column-number="2"/>
>                                                   
> <fo:table-body><fo:table-r...
> 
> ? 
> 
>         </5:table-column> 
>         <5:table-body  > 
>          <5:table-row  > 
>           <5:table-cell 
>               0:padding-left = "2pt" 
>               0:padding-right = "2pt" 
>               0:padding-top = "2pt" 
>               0:padding-bottom = "2pt"  > 
>            <5:block  > 
>            </5:block> 
>           </5:table-cell> 
>           <5:table-cell 
>               0:padding-left = "2pt" 
>               0:padding-right = "2pt" 
>               0:padding-top = "2pt" 
>               0:padding-bottom = "2pt"  > 
>            <5:block  > 
>            </5:block> 
>           </5:table-cell> 
>          </5:table-row> 
>          Grabbed content 
>           <5:table-cell 
>               0:padding-left = "2pt" 
>               0:padding-right = "2pt" 
>               0:padding-top = "2pt" 
>               0:padding-bottom = "2pt"  > 
>            <5:block  > 
>            </5:block> 
>           </5:table-cell> 
>           Grabbed content 
>            <5:block  > 
>            </5:block>
> Overfull \hbox (5.0pt too wide) in paragraph at lines 2--2
> []|\T1/ptm/m/n/10 x 
> 
>           End Grabbed content 
>           <5:table-cell 
>               0:padding-left = "2pt" 
>               0:padding-right = "2pt" 
>               0:padding-top = "2pt" 
>               0:padding-bottom = "2pt"  > 
>            <5:block  > 
>            </5:block> 
>           </5:table-cell> 
>           Grabbed content 
>            <5:block  > 
>            </5:block>
> Overfull \hbox (5.0pt too wide) in paragraph at lines 2--2
> []|\T1/ptm/m/n/10 y 
> 
>           End Grabbed content 
>          End Grabbed content 
>         </5:table-body> 
>        </5:table> 
>       </5:block> 
>      </5:block> 
>     </5:block> 
>    </5:flow> 
>     <5:block 
>         0:text-align = "center"  > 
>      <5:block 
>          0:font-size = "10pt"  > 
>      </5:block> 
>     </5:block> 
>     <5:block 
>         0:text-align = "center" 
>         0:font-size = "10pt"  > 
>      <5:page-number  > 
>      </5:page-number> 
>     </5:block> [2] 
>   </5:page-sequence> 
>  </5:root> (./book.aux)
> 
> LaTeX Warning: There were undefined references.
> 
> 
> LaTeX Warning: Label(s) may have changed.Rerun to get cross-references right.
> 
>  )
> Output written on book.dvi (4 pages, 5136 bytes).
> Transcript written on book.log.
 
I'm no passivetex expert, and I'm
not sure about the table errors, but you may have
gotten further than you think.  It actually completed
processing, as indicated by the page count message
at the end.  As it says, try
running the same command again to resolve cross
references (these come from the TOC if you don't
have any cross references yourself).  You may end
up with a pdf file after a second pass.  Maybe.  8^)

-- 

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