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: [docbook-apps] why does xsltproc create drafts from DocBook XML?


To turn off the draft mode entirely, you can set the 'draft.mode'
parameter to 'no' on xsltproc's command line:

xsltproc --stringparam draft.mode no ...

While you are at it, be sure to set the 'fop.extensions' parameter
to 1 as well with another --stringparam option.
That avoids certain things in the FO output that
FOP doesn't handle.

You will still get some warnings and such from FOP, but at
least you should get PDF output.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Tom Peters" <tpeters@xs4all.nl>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, January 06, 2004 1:08 PM
Subject: [docbook-apps] why does xsltproc create drafts from DocBook XML?


> I've been trying to get DocBook XML to print.  I've abandoned the DSSSL
> toolchain and try to get XSLT and FO working.  Now xsltproc generates a
> .fo file without complaints, using the docbook.xsl from Norman Walsh.
> Subsequently `fop` however balks at many things.  For one thing:
>
>
> Error creating background image: Error creating FopImage object (Error
> creating FopImage object
> (http://docbook.sourceforge.net/release/images/draft.png) :
> org.apache.fop.image.JimiImage
>
> Besides the fact that I am on-line and the image is reacheable (so it is
> odd that fop apparently cannot do anything with it), I don't want a
> "draft" watermark in my print in the first place.
> How come that this comes out of xsltproc?  In NW's pagesetup.xsl there
> are stanza's like:
> <xsl:if test="$draft.mode != 'no'">
> that should prevent references to the $draft.watermark.image .
> What do I do in DocBook to prevent this show-stopper?
>
>
>
> For another thing, I get errors like:
> [ERROR] property - "background-position-horizontal" is not implemented
yet.
> [ERROR] property - "background-position-vertical" is not implemented yet.
> But maybe they go away if I get rid of any background images.
>
>
>
> Finally (for now), `fop` breaks with:
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
>
> In my DocBook XML I never refer to "relative-align" or "baseline",
> whatever they may be.  What can I do about that?
>
> Thanx,
>
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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