docbook-apps

  • 1.  Re: [docbook-apps] titlepage customization

    Posted 11-25-2006 23:56
    Hi Stefan,
    Actually the titlepage.templates.xsl file is output file, not the
    processing stylesheet for that process. See this reference for more info:

    http://www.sagehill.net/docbookxsl/TitlePageNewElems.html

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: "Stefan Mueller" <stefan@held-mueller.de>
    To: <docbook-apps@lists.oasis-open.org>
    Sent: Saturday, November 25, 2006 6:33 AM
    Subject: [docbook-apps] titlepage customization


    > Hi out there,
    >
    > I just tried to compile a titlepage.template in the fo directory, like
    >
    > java -jar xalan.jar -out mytitle.xls -xsl titlepage.templates.xsl -in
    > titlepage.templates.xml
    >
    >
    > All I get is an error message. Since I am pretty new to xsl I did not
    > change anything in the templates, just called xalan as a try. What did I
    > do wrong?
    >
    > file:/..... c/DocBook/docbook-xsl-1.70.1/fo/title
    > page.templates.xsl; Zeile #84; Spalte #-1; XSLT-Fehler
    > (javax.xml.transform.Tran
    > sformerConfigurationException): javax.xml.transform.TransformerException:
    > org.ap
    > ache.xml.utils.WrappedRuntimeException: Variable mit Namen title.fontset
    > kann nicht gefunden werden
    >
    > Tough the error message is in german it just says
    >
    > variable title.fontset not found.
    >
    > What did I do wrong?
    >
    > Anyway, I'd like to put a picture on the titlepage of a pdf-file.
    >
    > Thanks for helping,
    > Stefan.
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >





  • 2.  Re: [docbook-apps] titlepage customization

    Posted 11-26-2006 12:30
    Dear Bob,
    thanks for the initial help. I am quite new to docbook.

    I did as you pointed out.

    I also added a customization file docbook2.xsl

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:import href="docbook.xsl"/>
    <xsl:include href="titlepage.my.xsl"/>
    </xsl:stylesheet>


    Then I tried to create a fo-file, but it shows error.


    Buildfile: C:\workspace\mathlib\build.xml
    xmltofo:
    [java] Error at xsl:stylesheet on line 2 of
    file:/C:/workspace/mathlib/Documentation/src/DocBook/xsl/fo/titlepage.my.xsl:
    [java] Namespace prefix exsl has not been declared
    [java] Error at xsl:when on line 92 of
    file:/C:/workspace/mathlib/Documentation/src/DocBook/xsl/fo/titlepage.my.xsl:
    [java] Namespace prefix exsl has not been declared
    [java] Error at xsl:value-of on line 92 of
    file:/C:/workspace/mathlib/Documentation/src/DocBook/xsl/fo/titlepage.my.xsl:
    [java] Namespace prefix exsl has not been declared
    [


    I removed the word "exsl" from a line in
    the file template/titlepage.xsl

    exclude-result-prefixes="doc t param exsl" -->
    exclude-result-prefixes="doc t param"

    and afterwards the generation of the fo-file worked quite well.

    Did I do something wrong in the first place?

    Thanks,
    Stefan.


    Bob Stayton wrote:
    > Hi Stefan,
    > Actually the titlepage.templates.xsl file is output file, not the
    > processing stylesheet for that process. See this reference for more info:
    >
    > http://www.sagehill.net/docbookxsl/TitlePageNewElems.html
    >
    > Bob Stayton
    > Sagehill Enterprises
    > DocBook Consulting
    > bobs@sagehill.net
    >
    >
    > ----- Original Message ----- From: "Stefan Mueller"
    > <stefan@held-mueller.de>
    > To: <docbook-apps@lists.oasis-open.org>
    > Sent: Saturday, November 25, 2006 6:33 AM
    > Subject: [docbook-apps] titlepage customization
    >
    >
    >> Hi out there,
    >>
    >> I just tried to compile a titlepage.template in the fo directory, like
    >>
    >> java -jar xalan.jar -out mytitle.xls -xsl titlepage.templates.xsl -in
    >> titlepage.templates.xml
    >>
    >>
    >> All I get is an error message. Since I am pretty new to xsl I did not
    >> change anything in the templates, just called xalan as a try. What did
    >> I do wrong?
    >>
    >> file:/..... c/DocBook/docbook-xsl-1.70.1/fo/title
    >> page.templates.xsl; Zeile #84; Spalte #-1; XSLT-Fehler
    >> (javax.xml.transform.Tran
    >> sformerConfigurationException):
    >> javax.xml.transform.TransformerException: org.ap
    >> ache.xml.utils.WrappedRuntimeException: Variable mit Namen
    >> title.fontset kann nicht gefunden werden
    >>
    >> Tough the error message is in german it just says
    >>
    >> variable title.fontset not found.
    >>
    >> What did I do wrong?
    >>
    >> Anyway, I'd like to put a picture on the titlepage of a pdf-file.
    >>
    >> Thanks for helping,
    >> Stefan.
    >>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >>
    >>
    >
    >
    >



  • 3.  RE: [docbook-apps] titlepage customization

    Posted 11-26-2006 13:10
    > -----Original Message-----
    > From: Stefan Mueller
    >
    > Then I tried to create a fo-file, but it shows error.
    >
    > Buildfile: C:\workspace\mathlib\build.xml
    > xmltofo:
    > [java] Error at xsl:stylesheet on line 2 of
    > file:/C:/workspace/mathlib/Documentation/src/DocBook/xsl/fo/ti
    > tlepage.my.xsl:
    > [java] Namespace prefix exsl has not been declared


    This is probably due to a problem with Xalan. The output file is missing a
    declaration for the exslt namespace prefix. This line in
    template/titlepage.xsl

    <xsl:copy-of select="document('')/xsl:stylesheet/namespace::exsl"/>

    is not producing the expected output because of a known bug.

    See http://issues.apache.org/jira/browse/XALANJ-2305. There is a workaround
    in the comments section of the bug.



    > I removed the word "exsl" from a line in
    > the file template/titlepage.xsl
    >
    > exclude-result-prefixes="doc t param exsl" -->
    > ="doc t param"
    >
    > and afterwards the generation of the fo-file worked quite well.


    Are you sure that this is the only change you made? The problem with the
    missing namespace prefix declaration will not go away just by removing
    'exsl' from exclude-result-prefixes.


    /MJ