docbook-apps

  • 1.  epub generation

    Posted 04-26-2010 14:21
    Hello All,

    I'm trying to use the ThreePress python scripts which call the docbook/epub xslt.

    It should be possible to use a custom stylesheet which import the epub.xslt file.

    And I have a trouble with my informaltable :

    lxml.etree.XSLTApplyError: No adjustColumnWidths function available.

    I know what to do with Xalan or Saxon in this case, but with python and those script, I don't.

    Is there any body who can help me ?

    Thanks in advance,
    Jacques


  • 2.  RE: [docbook-apps] epub generation

    Posted 04-26-2010 15:25
    Hi Jacques,

    I think you'll find help more quickly with lxml on the lxml mailing list.
    lxml-dev@codespeak.net

    good luck,
    --Tim

    > -----Original Message-----
    > From: Jacques Foucry [mailto:jacques@foucry.net]
    > Sent: Monday, April 26, 2010 10:21 AM
    > To: docbook-apps
    > Subject: [docbook-apps] epub generation
    >
    > Hello All,
    >
    > I'm trying to use the ThreePress python scripts which call the docbook/epub
    > xslt.
    >
    > It should be possible to use a custom stylesheet which import the epub.xslt
    > file.
    >
    > And I have a trouble with my informaltable :
    >
    > lxml.etree.XSLTApplyError: No adjustColumnWidths function available.
    >
    > I know what to do with Xalan or Saxon in this case, but with python and
    > those script, I don't.
    >
    > Is there any body who can help me ?
    >
    > Thanks in advance,
    > Jacques
    > ---------------------------------------------------------------------
    > 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] epub generation

    Posted 04-26-2010 15:44
    | -----Original Message-----
    | From: Jacques Foucry
    |
    | I'm trying to use the ThreePress python scripts which call
    | the docbook/epub xslt.
    |
    | It should be possible to use a custom stylesheet which
    | import the epub.xslt file.
    |
    | And I have a trouble with my informaltable :
    |
    | lxml.etree.XSLTApplyError: No adjustColumnWidths function available.
    |
    | I know what to do with Xalan or Saxon in this case, but with
    | python and those script, I don't.
    |
    | Is there any body who can help me ?



    The DocBook-XSL distribution comes with an adjustColumnWidths function that
    can be used with the default libxml2/libxslt Python bindings (see
    extensions/README.LIBXSLT). However, this won't work in your case since the
    ThreePress epub tools use lxml (which is a different libxml2/libxslt Python
    binding).

    You should be able to make the error message go away by setting the
    tablecolumns.extension parameter to 0.

    Mauritz