docbook-apps

  • 1.  Saxon ignoring output directory params

    Posted 02-22-2009 18:09

    I can't, for the life of me, get saxon to output anywhere but the local
    directory. Reading the docs, I found three different params for
    specifying the output directory, none of which work.

    The "-o" method, (from the saxon usage prompt), which it ignores:

    java -cp
    "/www/notlive/docbook/docbook-xsl-1.74.3-pre/extensions/saxon65.jar:/www/notlive/docbook/saxondamnit/saxon.jar:/www/notlive/docbook/xslthldamnit/xslthl-2.0.1.jar"
    \
    -Dhighlight.source=1 \
    -Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/highlighters/xslthl-config.xml"
    \
    com.icl.saxon.StyleSheet -o /www/mfsite/docbook/wefw ./text.xml
    /www/notlive/docbook/docbook-xsl-1.74.3-pre/html/chunkohp.xsl

    The output-root method (from the sagehill book), which it ignores:

    java -cp
    "/www/notlive/docbook/docbook-xsl-1.74.3-pre/extensions/saxon65.jar:/www/notlive/docbook/saxondamnit/saxon.jar:/www/notlive/docbook/xslthldamnit/xslthl-2.0.1.jar"
    -Dhighlight.source=1
    -Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/highlighters/xslthl-config.xml"
    com.icl.saxon.StyleSheet ./text.xml
    /www/notlive/docbook/docbook-xsl-1.74.3-pre/html/chunkohp.xsl
    output-root=/www/mfsite/docbook/

    The dir= method, which it ignores:

    java -cp
    "/www/notlive/docbook/docbook-xsl-1.74.3-pre/extensions/saxon65.jar:/www/notlive/docbook/saxondamnit/saxon.jar:/www/notlive/docbook/xslthldamnit/xslthl-2.0.1.jar"
    -Dhighlight.source=1
    -Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/highlighters/xslthl-config.xml"
    com.icl.saxon.StyleSheet ./text.xml
    /www/notlive/docbook/docbook-xsl-1.74.3-pre/html/chunkohp.xsl
    dir=/www/mfsite/docbook/

    It just always outputs locally.

    Saxon 6.5





  • 2.  RE: [docbook-apps] Saxon ignoring output directory params

    Posted 02-22-2009 20:06
    | -----Original Message-----
    | From: Mike
    |
    | I can't, for the life of me, get saxon to output anywhere
    | but the local
    | directory. Reading the docs, I found three different params for
    | specifying the output directory, none of which work.



    You are probably looking for the base.dir parameter:
    http://docbook.sourceforge.net/release/xsl/current/doc/html/base.dir.html

    It seems as if you might be confusing regular chunked output and Website
    output. They are similar, but different.

    See http://www.sagehill.net/docbookxsl/Chunking.html and
    http://www.sagehill.net/docbookxsl/Website.html.

    Mauritz





  • 3.  Re: [docbook-apps] Saxon ignoring output directory params

    Posted 02-22-2009 20:33


    Mauritz Jeanson wrote:
    > | -----Original Message-----
    > | From: Mike
    > |
    > | I can't, for the life of me, get saxon to output anywhere
    > | but the local
    > | directory. Reading the docs, I found three different params for
    > | specifying the output directory, none of which work.
    >
    >
    >
    > You are probably looking for the base.dir parameter:
    > http://docbook.sourceforge.net/release/xsl/current/doc/html/base.dir.html
    >
    > It seems as if you might be confusing regular chunked output and Website
    > output. They are similar, but different.
    >
    > See http://www.sagehill.net/docbookxsl/Chunking.html and
    > http://www.sagehill.net/docbookxsl/Website.html.
    >
    > Mauritz
    >

    No, actually, I think chunking is what I want- I want to make one giant
    xml file rather than a bunch of smaller ones. But in the output I want
    multiple html files.

    base.dir doesn't work either. Am I doing this right? I put this just
    above the <xsl:include href="chunk-code.xsl"/> line in my modified
    chunk.xsl file (chunkohp.xsl):

    <xsl:param name="base.dir" select="/www/mfsite/docbook"></xsl:param>

    I also tried putting it after the line instead of before it, too.

    I also tried it as

    <xsl:param name="base.dir" select="/www/mfsite/docbook"/>

    And the path to that directory is correct.




  • 4.  RE: [docbook-apps] Saxon ignoring output directory params

    Posted 02-22-2009 20:57
    | -----Original Message-----
    | From: Mike
    | >
    | > You are probably looking for the base.dir parameter:
    | >
    | http://docbook.sourceforge.net/release/xsl/current/doc/html/b
    | ase.dir.html
    | >
    | > It seems as if you might be confusing regular chunked
    | output and Website
    | > output. They are similar, but different.
    | >
    | > See http://www.sagehill.net/docbookxsl/Chunking.html and
    | > http://www.sagehill.net/docbookxsl/Website.html.
    | >
    | > Mauritz
    | >
    |
    | No, actually, I think chunking is what I want- I want to
    | make one giant
    | xml file rather than a bunch of smaller ones. But in the
    | output I want multiple html files.


    Yes, that's what chunking means, and Website is a special type of chunked
    output. But you are working with what I dubbed "regular chunked output". One
    of the parameters that you tried was "output-root", which only works for
    Website output.


    | base.dir doesn't work either. Am I doing this right? I put
    | this just
    | above the <xsl:include href="chunk-code.xsl"/> line in my modified
    | chunk.xsl file (chunkohp.xsl):
    |
    | <xsl:param name="base.dir" select="/www/mfsite/docbook"></xsl:param>


    You need to put a trailing slash at the very end of the path.

    Also, since getting a clean chunking customization working can be a bit
    tricky, you might want to look at this reference:
    http://www.sagehill.net/docbookxsl/ChunkingCustomization.html

    Mauritz