[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Newbie still has 3 trouble spots - Centering images,chunking per page, FOP broke
Hi, Can someone help me with the following three problem areas? Here is the front part of the book.xml file... <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//Arbortext//DTD DocBk XML V2.0//EN" "file:////home/jlf/xae/xae/doctypes/docbook/docbookx.dtd" [ <!ENTITY ora "O'Reilly & Associates, Inc."> <!ENTITY bkinfo SYSTEM "bkinfo.xml"> <!ENTITY preface SYSTEM "preface.xml"> <!ENTITY ch01 SYSTEM "ch01/ch01.xml"> ]> <?xml-stylesheet href="file:////home/jlf/docbook/docbook-xsl-1.40/docbook-xsl-1.40/html/xtchunk.xsl" type="text/xsl"?> ITEM 1: I'm having trouble getting images to center on the HTML using XSL-1.40, they end up left justified. Here's my markup: <figure id="fig1-1" float="1"> <title>Xmt helps separate UI from application back end</title> <mediaobject> <imageobject> <imagedata align="center" format="eps" fileref="./images/fig1-1.eps"/> </imageobject> <imageobject> <imagedata align="center" format="jpg" fileref="./images/fig1-1.jpg"/> </imageobject> </mediaobject> </figure> Anything wrong?? ITEM 2: How do I get chunking on a per/page basis? Currently I'm just using the default xtchunk.xsl with no over-rides. ITEM 3: FOP processing fails. Here are the versions of components: xae 1.0 beta 6 xt version 19991105 xp Version 0.5 fop fop-bin-1_17_0.jar Here is a failed FOP session followed by the makefile I'm using. jlf>make pdf java com.jclark.xsl.sax.Driver book.xml /home/jlf/xae/xae/doctypes/docbook/styles/docbook/fo/docbook.xsl > book.fo ; \ java org.apache.fop.apps.CommandLine book.fo book.pdf java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler at org.apache.fop.apps.Driver.<init>(Driver.java:139) at org.apache.fop.apps.CommandLine.run(CommandLine.java:127) at org.apache.fop.apps.CommandLine.main(CommandLine.java:268) make: *** [book.pdf] Error 1 jlf> ========================== Makefile ============================================ TARGET = book SAXDRIVER = com.jclark.xsl.sax.Driver FOP_PROC = org.apache.fop.apps.CommandLine HTML_XSL = /home/jlf/docbook/docbook-xsl-1.40/docbook-xsl-1.40/html/xtchunk.xsl PDF_XSL = /home/jlf/xae/xae/doctypes/docbook/styles/docbook/fo/docbook.xsl TIME = com.jclark.xml.apps.Time XT_PATH = /home/jlf/xt/xt.jar XP_PATH = /home/jlf/xp/xp.jar SAX_PATH = /home/jlf/xt/sax.jar FOP_PATH = /home/jlf/fop/fop.jar export CLASSPATH = $(XT_PATH):$(XP_PATH):$(SAX_PATH):$(FOP_PATH) SOURCE = \ $(TARGET).xml \ bkinfo.xml \ preface.xml \ ch01/ch01.xml all: html pdf valid: java $(TIME) $(TARGET).xml html: $(TARGET).html pdf: $(TARGET).pdf $(TARGET).html: $(SOURCE) java $(SAXDRIVER) $(TARGET).xml $(HTML_XSL) > $(TARGET).html $(TARGET).pdf: $(SOURCE) java $(SAXDRIVER) $(TARGET).xml $(PDF_XSL) > $(TARGET).fo ; \ java $(FOP_PROC) $(TARGET).fo $(TARGET).pdf clean: rm -f $(TARGET).html ; \ rm -f $(TARGET).pdf ; \ rm -f $(TARGET).fo
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC