(Comments below)

On 07.03.2003 12:17:33 Robert P. J. Day wrote:
> 
>   i'm getting numerous warnings/errors trying to render an extremely
> simple DocBook document.  my tools:
> 
>   docbook xsl 1.60.1
>   fop 0.20.5rc2
>   java 1.4.1_02 from sun
>   latest Jimi from sun
> 
>   i stripped things down to a 3-page document that shows beginners
> how to start using docbook markup.  then i tried to use FOP to render
> the PDF directly from the XML (i appended the *entire* XML doc to the
> bottom of this post, just in case).
> 
>   when i ran fop, i got lots of errors of the form:
> 
> [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
> [INFO] FOP 0.20.5rc2
> [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
> [INFO] building formatting object tree
> [INFO] setting up fonts
> Making portrait pages on USletter paper (8.5inx11in)
> [ERROR] property - "background-position-horizontal" is not implemented yet.
> [ERROR] property - "background-position-vertical" is not implemented yet.
> [INFO] Failed to load JAI, using Jimi instead
> ... snip ...
> [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
> ... snip ...

FOP doesn't implement the whole XSL spec, yet. DocBook however makes
extensive use of several features not available in FOP and that's why
you get the messages.

> [INFO] [1]
> [INFO] [2]
> [INFO] [3]
> ... HUGE snip ... lots of dup messages ...
> [INFO] [1]
> [ERROR] Couldn't find hyphenation pattern en
> [ERROR] Error building hyphenation tree for language en
> [ERROR] Couldn't find hyphenation pattern en
> [ERROR] Error building hyphenation tree for language en
> [ERROR] Couldn't find hyphenation pattern en
> [ERROR] Error building hyphenation tree for language en
> [ERROR] Couldn't find hyphenation pattern en
> [ERROR] Error building hyphenation tree for language en
> [INFO] Parsing of document complete, stopping renderer

Most hyphenation pattern files had to be removed recently because of
licensing reasons (it was in the release notes). English is among those
removed. For the moment you can use "en_GB" instead of "en" or turn
hypenation off.

>   any suggestions?  in addition, when i tried to render the entire
> 15 (or so) page document, a number of docbook elements (lists for
> instance) were rendered really badly or not at all.

I'll leave that open to be answered by people having experience with
DocBook. I know there are some problems but I don't remember the details.
Maybe you should have a look at the mailing list archives. There should
be lots of information on DocBook with FOP.

>   i'm open to suggestions, as i work my way thru the docs and
> archives.  (a pointer to a detailed setup for FOP under red hat
> 8.0 would be appreciated, and i can probably take it from there.)
> thanks.

We can't provide separate installation instructions for each and every
operating system. The page below also applies to Red Hat:
http://xml.apache.org/fop/running.html

But as far as I can see you've already managed running FOP, right?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to