docbook-apps

  • 1.  Trouble with tables, xsltproc

    Posted 08-14-2006 17:07
    Hi all,

    I'm having an awfully hard time trying to put a table in a document.

    It's in a <book>, inside a <appendix> and a <sect1> in that appendix, in
    between a <para>...</para> and a <itemizedlist>...</itemizedlist>... I
    moved it to a chapter in a <sect1> and between a <para> and the next...
    I even tried warpping it within a <para> tag pair itself.

    In all cases the XSLT processor (xsltproc) fails almost immediately
    while starting to write the fo file with this error:

    XPath error : Invalid context position
    xmlXPathCompiledEval: evaluation failed

    The error seems to suggest the table is existing within elements that
    it's not allowed to be within. But if I run xmllint on my xml file there
    seem to be no validity errors about tables.

    Even more curiously, the indentical table works fine inside a simpler
    document where I tested them out, inside a
    .

    Any clues?

    Thanks...

    -Alan

    Alan C. Oehler
    Sr. Technical Writer
    XenSource, Inc.
    Phone: 650.798.5900 x 240




  • 2.  RE: [docbook-apps] Trouble with tables, xsltproc

    Posted 08-14-2006 18:15
    > -----Original Message-----
    > From: Alan C. Oehler
    >
    > I'm having an awfully hard time trying to put a table in a document.
    >
    > It's in a <book>, inside a <appendix> and a <sect1> in that
    > appendix, in
    > between a <para>...</para> and a <itemizedlist>...</itemizedlist>... I
    > moved it to a chapter in a <sect1> and between a <para> and
    > the next...
    > I even tried warpping it within a <para> tag pair itself.
    >
    > In all cases the XSLT processor (xsltproc) fails almost immediately
    > while starting to write the fo file with this error:
    >
    > XPath error : Invalid context position
    > xmlXPathCompiledEval: evaluation failed


    You need to provide some more information in order to make it possible to
    reproduce the problem. The most important piece of information is a minimal
    but complete sample document. It would also be interesting to know if the
    problem occurs with stock DocBook XSL (version?) or only with a
    customization layer.

    /MJ