docbook-apps

  • 1.  problems in the translet compilation of the fo\docbook.xsl

    Posted 06-29-2010 10:59
    Hello,

    I'm trying to compile fo\docbook.xsl and the compilation stops on the error (see below the compiler errors and the xalan EnvironmentCheck).

    Do you know the solution? I have read the old docbook-apps mailing list about this issue and not find solution from there.

    The java version I must use is java 5. I have tried also java 6, but I got the same error messages. The DocBook XSL version is 1.75.2. I'm using the extension library x
    alan27.jar in my classpath.

    The translet compilation is working with other xsl files.

    Thanks,

    Mika

    **********************************

    The compilation command

    C:\Documents and Settings\mitapana\My Documents\xml2pdf\xalan\xalan-j_2_7_1>c:\j
    ava\jdk1.5.0_13\jre\bin\java -cp .;..\..\docbook\docbook-xsl-1.75.2\extensions\x
    alan27.jar;xsltc.jar;serializer.jar;xercesImpl.jar;xml-apis.jar;xalan.jar org.ap
    ache.xalan.xsltc.cmdline.Compile ..\..\docbook\docbook-xsl-1.75.2\fo\docbook.xsl

    Compiler warnings:
    file:/C:/Documents%20and%20Settings/mitapana/My%20Documents/xml2pdf/docbook/do
    cbook-xsl-1.75.2/fo/table.xsl: line 451: Attribute 'border-start-style' outside
    of element.
    file:/C:/Documents%20and%20Settings/mitapana/My%20Documents/xml2pdf/docbook/do
    cbook-xsl-1.75.2/fo/table.xsl: line 452: Attribute 'border-end-style' outside of
    element.
    file:/C:/Documents%20and%20Settings/mitapana/My%20Documents/xml2pdf/docbook/do
    cbook-xsl-1.75.2/fo/table.xsl: line 453: Attribute 'border-top-style' outside of
    element.
    file:/C:/Documents%20and%20Settings/mitapana/My%20Documents/xml2pdf/docbook/do
    cbook-xsl-1.75.2/fo/table.xsl: line 454: Attribute 'border-bottom-style' outside
    of element.
    file:/C:/Documents%20and%20Settings/mitapana/My%20Documents/xml2pdf/docbook/do
    cbook-xsl-1.75.2/fo/index.xsl: line 351: Attribute 'rx:key' outside of element.
    Compiler errors:
    The first argument to the non-static Java function 'insertCallouts' is not a v
    alid object reference.
    Cannot find external method 'com.nwalsh.xalan.Verbatim.insertCallouts' (must b
    e public).
    Cannot find external method 'org.apache.xalan.lib.NodeInfo.systemId' (must be
    public).


    ***********************************
    The EnvironmentCheck:

    C:\Documents and Settings\mitapana\My Documents\xml2pdf\xalan\xalan-j_2_7_1>c:\j
    ava\jdk1.5.0_13\jre\bin\java -cp .;xsltc.jar;serializer.jar;xercesImpl.jar;xml-a
    pis.jar;xalan.jar org.apache.xalan.xslt.EnvironmentCheck
    #---- BEGIN writeEnvironmentReport($Revision$): Useful stuff found: ----
    version.DOM.draftlevel=2.0fd
    java.class.path=.;xsltc.jar;serializer.jar;xercesImpl.jar;xml-apis.jar;xalan.jar

    version.JAXP=1.1 or higher
    java.ext.dirs=c:\java\jdk1.5.0_13\jre\lib\ext
    version.xerces2=Xerces-J 2.9.0
    version.xerces1=not-present
    version.xalan2_2=Xalan Java 2.7.1
    version.xalan1=not-present
    version.ant=not-present
    java.version=1.5.0_13
    version.DOM=2.0
    version.crimson=not-present
    sun.boot.class.path=c:\java\jdk1.5.0_13\jre\lib\rt.jar;c:\java\jdk1.5.0_13\jre\l
    ib\i18n.jar;c:\java\jdk1.5.0_13\jre\lib\sunrsasign.jar;c:\java\jdk1.5.0_13\jre\l
    ib\jsse.jar;c:\java\jdk1.5.0_13\jre\lib\jce.jar;c:\java\jdk1.5.0_13\jre\lib\char
    sets.jar;c:\java\jdk1.5.0_13\jre\classes
    #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path ----
    xsltc.jar-apparent.version=xsltc.jar present-unknown-version
    xsltc.jar-path=C:\Documents and Settings\mitapana\My Documents\xml2pdf\xalan\xal
    an-j_2_7_1\xsltc.jar
    serializer.jar-apparent.version=serializer.jar present-unknown-version
    serializer.jar-path=C:\Documents and Settings\mitapana\My Documents\xml2pdf\xala
    n\xalan-j_2_7_1\serializer.jar
    xercesImpl.jar-apparent.version=xercesImpl.jar WARNING.present-unknown-version
    xercesImpl.jar-path=C:\Documents and Settings\mitapana\My Documents\xml2pdf\xala
    n\xalan-j_2_7_1\xercesImpl.jar
    xml-apis.jar-apparent.version=xml-apis.jar present-unknown-version
    xml-apis.jar-path=C:\Documents and Settings\mitapana\My Documents\xml2pdf\xalan\
    xalan-j_2_7_1\xml-apis.jar
    xalan.jar-path=C:\Documents and Settings\mitapana\My Documents\xml2pdf\xalan\xal
    an-j_2_7_1\xalan.jar
    #----- END Listing XML-related jars in: foundclasses.java.class.path -----
    version.SAX=2.0
    version.xalan2x=Xalan Java 2.7.1
    #----- END writeEnvironmentReport: Useful properties found: -----
    # YAHOO! Your environment seems to be OK.


  • 2.  Re: [docbook-apps] problems in the translet compilation of the fo\docbook.xsl

    Posted 06-30-2010 13:30
    Tapanainen Mika wrote:

    > The translet compilation is working with other xsl files.

    Well, XSLTC is known to have problems with really complex
    transformations like DocBook XSL stylesheets. If you are in Java
    environment it is recommended to use Saxon, you can also use Xalan
    (normal version, not compiled).

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




  • 3.  RE: [docbook-apps] problems in the translet compilation of the fo\docbook.xsl

    Posted 06-30-2010 13:36
    Hello,

    Is there any chance to get the compilation work with Xalan? Because my customer environment use Xalan and it is maybe not possible to use Saxon libraries.

    BR,

    Mika

    >-----Original Message-----
    >From: Jirka Kosek [mailto:jirka@kosek.cz]
    >Sent: Wednesday, June 30, 2010 4:30 PM
    >To: Tapanainen Mika
    >Cc: docbook-apps@lists.oasis-open.org
    >Subject: Re: [docbook-apps] problems in the translet
    >compilation of the fo\docbook.xsl
    >
    >Tapanainen Mika wrote:
    >
    >> The translet compilation is working with other xsl files.
    >
    >Well, XSLTC is known to have problems with really complex
    >transformations like DocBook XSL stylesheets. If you are in Java
    >environment it is recommended to use Saxon, you can also use Xalan
    >(normal version, not compiled).
    >
    >--
    >------------------------------------------------------------------
    > Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    >------------------------------------------------------------------
    > Professional XML consulting and training services
    > DocBook customization, custom XSLT/XSL-FO document processing
    >------------------------------------------------------------------
    > OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    >------------------------------------------------------------------
    >
    >


  • 4.  RE: [docbook-apps] problems in the translet compilation of the fo\docbook.xsl

    Posted 06-30-2010 16:49
    | -----Original Message-----
    | From: Tapanainen Mika
    |
    | Is there any chance to get the compilation work with Xalan?


    If you mean "compile into a translet", then the anwser is probably no. Other
    people have had similar problems:

    http://dev.eclipse.org/newslists/news.eclipse.webtools/msg18028.html

    But you can use the interpretive Xalan processor instead. See

    http://xml.apache.org/xalan-j/commandline.html
    http://www.sagehill.net/docbookxsl/InstallingAProcessor.html#UsingXalan

    Mauritz