This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Problem generating PDF output using the Template System for titlepages
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: "'Kevin dot Ruscoe at ubsw dot com'" <Kevin dot Ruscoe at ubsw dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Wed, 28 May 2003 13:25:11 -0400
- Subject: RE: [docbook-apps] Problem generating PDF output using the Template System for titlepages
You don't really have to worry about the first one. There is a parameter
that sets the value for the background-image that you can set to the empty
string. (Check the documentation, draft.background.image, I believe.) The
second one looks like a problem with an old version of libxslt. Try
upgrading to the latest version of libxslt.
> -----Original Message-----
> From: Kevin.Ruscoe@ubsw.com [mailto:Kevin.Ruscoe@ubsw.com]
> Sent: Wednesday, May 28, 2003 12:26 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] Problem generating PDF output using
> the Template
> System for titlepages
>
>
> Hi all
>
> I am trying to use the new(ish) Template System for the first time.
> NB For those who have not tried this, there is documentation
> at the following links:
>
> http://docbook.sourceforge.net/release/xsl/current/doc/ch05.html
> http://www.sagehill.net/xml/docbookxsl/HtmlCustomEx.html#HTMLTitlePage
>
> The summary is that I can generate HTML output fine, but get
> errors when
> trying to generate PDF output. With luck, the problem is just my
> misunderstanding of the configuration.
>
> Notes:
> 1) The "Error creating background image" errors certainly appear to be
> a configuration issue. However, I am not sure how to fix
> them (they are
> not fatal).
> 2) The fatal error I get from FOP is:
> "[Fatal Error] test.fo:2:36434: The value of the attribute
> "xmlns:ns1" is invalid."
>
> Any advice would be appreciated.
>
> Details follow...
>
> Toolchain
> =========
> DocBook DTD v4.2
> DocBook XSL v1.60.1
> libxslt v1.0.22
> FOP v0.20.4
>
> Files
> =====
> test.sh - Bourne Shell program containing the
> necessary steps
> test.out - output of running test.sh
> test.dbk - example DocBook file
> test_html.xsl - customised XSL for HTML output which includes
> the titlepage XSL
> test_fo.xsl - customised XSL for FO output which
> includes the titlepage XSL
> titlepage_html.xsl- generated titlepage XSL for HTML output
> titlepage_fo.xsl - generated titlepage XSL for FO output
> test.html - generated HTML corresponding to
> example DocBook file
> test.fo - generated FO corresponding to example
> DocBook file
> test.pdf - generated PDF corresponding to
> example DocBook file
>
> (see end of mail for selected file contents)
>
> * When I execute the following command:
> $ sh test.sh > test.out 2>&1
>
> * The (abridged) contents of test.out are:
>
> Generating titlepage XSL templates for HTML...
> Generating test HTML...
> Generating titlepage XSL templates for FO...
> Generating test FO...
> titlepage_fo.xsl:152: error: Empty namespace name for prefix ns1
> le" ns1:keep-with-next="always" ns1:font-size="24.8832pt"
> ns1:font-weight="bold
>
> ^
>
> [snip - lots of similar errors]
>
> Making portrait pages on USletter paper (8.5inx11in)
> Generating test PDF...
> [INFO] FOP 0.20.4
> [INFO] building formatting object tree
> [ERROR] property - "background-attachment" is not implemented yet.
> [ERROR] property - "background-position-horizontal" is not
> implemented yet.
> [ERROR] property - "background-position-vertical" is not
> implemented yet.
> Error creating background image: Error while recovering Image
> Informations
> (file:/vobs/LDN_CORE/unix/bug_reports/docbook-xsl/UBSWP0002998
> 8//release/images/draft.png) :
> /vobs/LDN_CORE/unix/bug_reports/docbook-xsl/UBSWP00029988/rele
> ase/images/draft.png
> (No such file or directory)
>
> [snip - lots of similar errors]
>
> [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 - lots of similar errors]
>
> [Fatal Error] test.fo:2:36434: The value of the attribute
> "xmlns:ns1" is invalid.
> Prefixed namespace bindings may not be empty.
> [ERROR] The value of the attribute "xmlns:ns1" is invalid.
> Prefixed namespace bindings may not be empty.
>
> test.sh
> =======
> DOCBOOK_XSL_HOME=/sbcimp/run/pd/docbook-xsl/1.60.1
> FOP_HOME=/sbcimp/run/pd/fop/0.20.4
> LIBXSLT_HOME=/sbcimp/run/pd/libxslt/1.0.24
>
> printf "Generating titlepage XSL templates for HTML...\n"
> $LIBXSLT_HOME/bin/xsltproc \
> --catalogs \
> -o titlepage_html.xsl \
> $DOCBOOK_XSL_HOME/template/titlepage.xsl \
> $DOCBOOK_XSL_HOME/html/titlepage.templates.xml
>
> printf "Generating test HTML...\n"
> $LIBXSLT_HOME/bin/xsltproc \
> --catalogs \
> -o test.html \
> test_html.xsl \
> test.dbk
>
> printf "Generating titlepage XSL templates for FO...\n"
> $LIBXSLT_HOME/bin/xsltproc \
> --catalogs \
> -o titlepage_fo.xsl \
> $DOCBOOK_XSL_HOME/template/titlepage.xsl \
> $DOCBOOK_XSL_HOME/fo/titlepage.templates.xml
>
> printf "Generating test FO...\n"
> $LIBXSLT_HOME/bin/xsltproc \
> --catalogs \
> -o test.fo \
> test_fo.xsl \
> test.dbk
>
> printf "Generating test PDF...\n"
> $FOP_HOME/fop.sh \
> -fo test.fo \
> test.pdf
>
> test.dbk
> ========
> <?xml version='1.0'?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "docbookx.dtd">
>
> <article>
> <title>Test</title>
>
> <para>This is a test.</para>
> </article>
>
> test_html.xsl
> =============
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> version="1.0">
> <xsl:import
> href="/sbcimp/run/pd/docbook-xsl/1.60.1/html/docbook.xsl"/>
>
> <xsl:include href="titlepage_html.xsl"/>
> </xsl:stylesheet>
>
> test_fo.xsl
> ===========
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> version="1.0">
> <xsl:import
> href="/sbcimp/run/pd/docbook-xsl/1.60.1/fo/docbook.xsl"/>
>
> <xsl:include href="titlepage_fo.xsl"/>
> </xsl:stylesheet>
>
> Best wishes
>
> Kevin
> +ANYTHING+BELOW+WAS+ADDED+AFTER+I+HIT+SEND+
>
>
> Visit our website at http://www.ubswarburg.com
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version. This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help@lists.oasis-open.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org