docbook-apps

  • 1.  XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

    Posted 02-22-2010 10:05
    Hi there,

    Just a quick info since it took me quite some time, on linux
    (debian) the solution :

    <xsl:param name="highlight.xslthl.config"
    select="/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml"/>


    simply *does not* work. You have to use the -D option:

    $ java -classpath
    /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar
    -Dxslthl.config="file:////home/mathieu/Software/xslthl/highlighters/xslthl-config.xml"
    com.icl.saxon.StyleSheet -o myfile.html myinput.xml myhtml.xsl

    With a cusomization layer such as:



    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl"/>
    <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/highlighting/common.xsl"/>
    <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/highlight.xsl"/>
    <xsl:param name="highlight.source" select="1"/>




    </xsl:stylesheet>

    HTH
    --
    Mathieu



  • 2.  Re: [docbook-apps] XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

    Posted 02-22-2010 18:26
    Am Montag, den 22.02.2010, 11:04 +0100 schrieb Mathieu Malaterre:

    > Just a quick info since it took me quite some time, on linux
    > (debian) the solution :
    >
    > <xsl:param name="highlight.xslthl.config"
    > select="/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml"/>

    Please use

    <xsl:param name="highlight.xslthl.config" select="'path'"/>

    (note the single quotation marks) or

    <xsl:param name="highlight.xslthl.config">path</xsl:param>

    Does it work now?

    Regards, Daniel




  • 3.  Re: [docbook-apps] XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

    Posted 02-23-2010 09:14
    On Mon, Feb 22, 2010 at 7:26 PM, Daniel Leidert
    <daniel.leidert.spam@gmx.net> wrote:
    > Am Montag, den 22.02.2010, 11:04 +0100 schrieb Mathieu Malaterre:
    >
    >>   Just a quick info since it took me quite some time, on linux
    >> (debian) the solution :
    >>
    >> <xsl:param name="highlight.xslthl.config"
    >> select="/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml"/>
    >
    > Please use
    >
    > <xsl:param name="highlight.xslthl.config" select="'path'"/>
    >
    > (note the single quotation marks) or
    >
    > <xsl:param name="highlight.xslthl.config">path</xsl:param>

    Both:

    <xsl:param name="highlight.xslthl.config"
    select="'/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml'"/>
    and
    <xsl:param name="highlight.xslthl.config">/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml</xsl:param>

    fails with:

    $ java -classpath
    /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar
    com.icl.saxon.StyleSheet -o myfile.html input.xml myhtml.xsl
    Loading Xslthl configuration from
    /home/mathieu/Software/xslthl/highlighters/xslthl-config.xml...
    XSLT Highlighter: Cannot read xslthl-config.xml, no custom
    highlighters will be available.

    Without your help I was getting:

    $ java -classpath
    /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar
    com.icl.saxon.StyleSheet -o myfile.html input.xml myhtml.xsl
    Loading Xslthl configuration from xslthl-config.xml...
    XSLT Highlighter: Cannot read xslthl-config.xml, no custom
    highlighters will be available.

    [pay attention to the second line of output]

    So at least the xml path to xslthl-config.xml seems to be read in
    properly now (thanks!), but still there is something funky going on.
    I'll try with saxonb...

    2cts
    --
    Mathieu



  • 4.  Re: [docbook-apps] XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

    Posted 02-23-2010 09:17
    On Tue, Feb 23, 2010 at 10:14 AM, Mathieu Malaterre
    <mathieu.malaterre@gmail.com> wrote:
    > On Mon, Feb 22, 2010 at 7:26 PM, Daniel Leidert
    > <daniel.leidert.spam@gmx.net> wrote:
    >> Am Montag, den 22.02.2010, 11:04 +0100 schrieb Mathieu Malaterre:
    >>
    >>>   Just a quick info since it took me quite some time, on linux
    >>> (debian) the solution :
    >>>
    >>> <xsl:param name="highlight.xslthl.config"
    >>> select="/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml"/>
    >>
    >> Please use
    >>
    >> <xsl:param name="highlight.xslthl.config" select="'path'"/>
    >>
    >> (note the single quotation marks) or
    >>
    >> <xsl:param name="highlight.xslthl.config">path</xsl:param>
    >
    > Both:
    >
    > <xsl:param name="highlight.xslthl.config"
    > select="'/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml'"/>
    > and
    > <xsl:param name="highlight.xslthl.config">/home/mathieu/Software/xslthl/highlighters/xslthl-config.xml</xsl:param>
    >
    > fails with:
    >
    > $  java -classpath
    > /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar
    >   com.icl.saxon.StyleSheet  -o myfile.html input.xml myhtml.xsl
    > Loading Xslthl configuration from
    > /home/mathieu/Software/xslthl/highlighters/xslthl-config.xml...
    > XSLT Highlighter: Cannot read xslthl-config.xml, no custom
    > highlighters will be available.
    >
    > Without your help I was getting:
    >
    > $  java -classpath
    > /usr/share/java/saxon.jar:/home/mathieu/Software/xslthl/xslthl-2.0.1.jar
    >   com.icl.saxon.StyleSheet  -o myfile.html input.xml myhtml.xsl
    > Loading Xslthl configuration from xslthl-config.xml...
    > XSLT Highlighter: Cannot read xslthl-config.xml, no custom
    > highlighters will be available.
    >
    > [pay attention to the second line of output]
    >
    > So at least the xml path to xslthl-config.xml seems to be read in
    > properly now (thanks!), but still there is something funky going on.
    > I'll try with saxonb...

    Silly me. The proper solution was simply:

    <xsl:param name="highlight.xslthl.config">file:////home/mathieu/Software/xslthl/highlighters/xslthl-config.xml</xsl:param>

    Sorry for the noise.

    --
    Mathieu



  • 5.  Re: [docbook-apps] XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available.

    Posted 02-24-2010 17:14
    Mathieu Malaterre wrote:

    > Silly me. The proper solution was simply:
    >
    > <xsl:param name="highlight.xslthl.config">file:////home/mathieu/Software/xslthl/highlighters/xslthl-config.xml</xsl:param>

    I have updated reference page for parameter to suggest using URL instead
    of local path.

    Jirka

    --
    ------------------------------------------------------------------
    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
    ------------------------------------------------------------------