docbook-apps

  • 1.  Re: [docbook-apps] beta EPUB3 stylesheet available

    Posted 09-19-2011 00:01
    Hi Lars,
    This is strange. While I always use the Xerces-J parser with Saxon 6, I did not mean to introduce a new dependency on it. I just ran it again with Xerces turned off and its jar file excluded from the classpath, and the xhtml5/docbook.xsl and chunk.xsl work fine without it. I'm running java version "1.6.0_05" on Windows XP under Cygwin. So I'm not able to reproduce your error yet. My command looks like this:

    java -cp saxon.jar com.icl.saxon.StyleSheet -o mybook.html mybook.xml ../docbook-xsl-1.76.1/xhtml5/docbook.xsl

    You say the html and xhtml stylesheets work without xerces-j, but I don't think the xhtml5 stylesheets are doing anything fundamentally different from those stylesheets. They all pull in stylesheet files from other directories using relative paths. For example, the html/autoidx.xsl file has the same relative path entity declaration:


    %common.entities;

    Also, the html/docbook.xsl file imports templates using relative pathnames:

    <xsl:include href="../common/common.xsl"/>


    I wonder why it works in those instances but not in the xhtml5 instance? I wonder if that error message is being helpful in identifying the source of the problem.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] beta EPUB3 stylesheet available

    Posted 09-19-2011 07:39
    Hi Bob,

    I was testing under Linux with Ubuntu 10.04, just in case you have easy
    access to a Linux box this might help you to reproduce the error.

    I will also re-build the example on Windows7 and let you know if it works or
    not.

    Best regards, Lars


    2011/9/19 Bob Stayton <bobs@sagehill.net>

    > **
    > Hi Lars,
    > This is strange. While I always use the Xerces-J parser with Saxon 6, I
    > did not mean to introduce a new dependency on it. I just ran it again with
    > Xerces turned off and its jar file excluded from the classpath, and the
    > xhtml5/docbook.xsl and chunk.xsl work fine without it. I'm running java
    > version "1.6.0_05" on Windows XP under Cygwin. So I'm not able to reproduce
    > your error yet. My command looks like this:
    >
    > java -cp saxon.jar com.icl.saxon.StyleSheet -o mybook.html mybook.xml
    > ../docbook-xsl-1.76.1/xhtml5/docbook.xsl
    >
    > You say the html and xhtml stylesheets work without xerces-j, but I don't
    > think the xhtml5 stylesheets are doing anything fundamentally different from
    > those stylesheets. They all pull in stylesheet files from other
    > directories using relative paths. For example, the html/autoidx.xsl file
    > has the same relative path entity declaration:
    >
    >
    > %common.entities;
    >
    > Also, the html/docbook.xsl file imports templates using relative pathnames:
    >
    > <xsl:include href="../common/common.xsl"/>
    >
    > I wonder why it works in those instances but not in the xhtml5 instance? I
    > wonder if that error message is being helpful in identifying the source of
    > the problem.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    >
    >
    >


  • 3.  Re: [docbook-apps] beta EPUB3 stylesheet available

    Posted 09-19-2011 11:46
    Hi Bob,

    The xhmlt5 Stylesheets work fine under Windows7 (without the xerces-j parser
    for me).

    Best regards, Lars

    2011/9/19 Lars Vogel <lars.vogel@googlemail.com>

    > Hi Bob,
    >
    > I was testing under Linux with Ubuntu 10.04, just in case you have easy
    > access to a Linux box this might help you to reproduce the error.
    >
    > I will also re-build the example on Windows7 and let you know if it works
    > or not.
    >
    > Best regards, Lars
    >
    >
    > 2011/9/19 Bob Stayton <bobs@sagehill.net>
    >
    >> **
    >> Hi Lars,
    >> This is strange. While I always use the Xerces-J parser with Saxon 6, I
    >> did not mean to introduce a new dependency on it. I just ran it again with
    >> Xerces turned off and its jar file excluded from the classpath, and the
    >> xhtml5/docbook.xsl and chunk.xsl work fine without it. I'm running java
    >> version "1.6.0_05" on Windows XP under Cygwin. So I'm not able to reproduce
    >> your error yet. My command looks like this:
    >>
    >> java -cp saxon.jar com.icl.saxon.StyleSheet -o mybook.html mybook.xml
    >> ../docbook-xsl-1.76.1/xhtml5/docbook.xsl
    >>
    >> You say the html and xhtml stylesheets work without xerces-j, but I don't
    >> think the xhtml5 stylesheets are doing anything fundamentally different from
    >> those stylesheets. They all pull in stylesheet files from other
    >> directories using relative paths. For example, the html/autoidx.xsl file
    >> has the same relative path entity declaration:
    >>
    >>
    >> %common.entities;
    >>
    >> Also, the html/docbook.xsl file imports templates using relative
    >> pathnames:
    >>
    >> <xsl:include href="../common/common.xsl"/>
    >>
    >> I wonder why it works in those instances but not in the xhtml5 instance? I
    >> wonder if that error message is being helpful in identifying the source of
    >> the problem.
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >>
    >>
    >>
    >>


  • 4.  Re: [docbook-apps] beta EPUB3 stylesheet available

    Posted 09-19-2011 21:47
    Hi Bob,

    If I remove


    %common.entities;
    ]>

    from the xhtml5/docbook.xsl the conversion works fine without xerces-j.

    I have no idea what the above entry is used for ;-) so I have no idea if
    that is a solution or creating a problem elsewhere.

    Best regards, Lars

    2011/9/19 Lars Vogel <lars.vogel@googlemail.com>

    > Hi Bob,
    >
    > The xhmlt5 Stylesheets work fine under Windows7 (without the xerces-j
    > parser for me).
    >
    > Best regards, Lars
    >
    >
    > 2011/9/19 Lars Vogel <lars.vogel@googlemail.com>
    >
    >> Hi Bob,
    >>
    >> I was testing under Linux with Ubuntu 10.04, just in case you have easy
    >> access to a Linux box this might help you to reproduce the error.
    >>
    >> I will also re-build the example on Windows7 and let you know if it works
    >> or not.
    >>
    >> Best regards, Lars
    >>
    >>
    >> 2011/9/19 Bob Stayton <bobs@sagehill.net>
    >>
    >>> **
    >>> Hi Lars,
    >>> This is strange. While I always use the Xerces-J parser with Saxon 6, I
    >>> did not mean to introduce a new dependency on it. I just ran it again with
    >>> Xerces turned off and its jar file excluded from the classpath, and the
    >>> xhtml5/docbook.xsl and chunk.xsl work fine without it. I'm running java
    >>> version "1.6.0_05" on Windows XP under Cygwin. So I'm not able to reproduce
    >>> your error yet. My command looks like this:
    >>>
    >>> java -cp saxon.jar com.icl.saxon.StyleSheet -o mybook.html mybook.xml
    >>> ../docbook-xsl-1.76.1/xhtml5/docbook.xsl
    >>>
    >>> You say the html and xhtml stylesheets work without xerces-j, but I don't
    >>> think the xhtml5 stylesheets are doing anything fundamentally different from
    >>> those stylesheets. They all pull in stylesheet files from other
    >>> directories using relative paths. For example, the html/autoidx.xsl file
    >>> has the same relative path entity declaration:
    >>>
    >>>
    >>> %common.entities;
    >>>
    >>> Also, the html/docbook.xsl file imports templates using relative
    >>> pathnames:
    >>>
    >>> <xsl:include href="../common/common.xsl"/>
    >>>
    >>> I wonder why it works in those instances but not in the xhtml5 instance?
    >>> I wonder if that error message is being helpful in identifying the source of
    >>> the problem.
    >>>
    >>> Bob Stayton
    >>> Sagehill Enterprises
    >>> bobs@sagehill.net
    >>>
    >>>
    >>>
    >>>