docbook-apps

  • 1.  [docbook-apps] Using fox: extensions

    Posted 09-12-2011 08:41

    Using FOP 1.0. How can I access the following FOP extension through the XSL
    stylesheets?
    fox:orphan-content-limit
    --
    View this message in context: http://old.nabble.com/Using-fox%3A-extensions-tp32446134p32446134.html
    Sent from the docbook apps mailing list archive at Nabble.com.




  • 2.  Processing cells in CALS tables

    Posted 09-12-2011 13:41
    I'd like to apply an XSL transformation to my DocBook (CALS-style) tables
    which outputs each cell of each table, together with the label of its
    row(s) and column(s). That is, for a table that looks like

    | Col1Label | Col2Label |
    ---------------------------------------------|
    Row1Label | Cell1 | Cell2 |
    ---------------------------------------------|
    Row2Label | Cell3 |
    Row3Label | |
    ---------------------------------------------|

    the transform would output something like
    ...
    <Entry>
    Cell1
    <RowLabels>
    <RowLabel text="Row1Label"/>
    </RowLabels>
    <ColLabels>
    <ColLabel text="Col1Label"/>
    </ColLabels>
    </Entry>
    <Entry>
    Cell2
    <RowLabels>
    <RowLabel text="Row1Label"/>
    </RowLabels>
    <ColLabels>
    <ColLabel text="Col2Label"/>
    </ColLabels>
    </Entry>
    <Entry>
    Cell3
    <RowLabels>
    <RowLabel text="Row2Label"/>
    <RowLabel text="Row3Label"/>
    </RowLabels>
    <ColLabels>
    <ColLabel text="Col1Label"/>
    <ColLabel text="Col2Label"/>
    </ColLabels>
    </Entry>
    ...

    Before I go off and try to do something like that, is there any existing
    transform that does that? I'd prefer XSLT or Python, but I'd accept other
    solutions.

    BTW, the application is that we're writing grammars in DocBook, and if a
    table represents a paradigm, then its entries--the forms of the
    paradigm--are test cases for our parser. I can extract the test cases
    easily, but it would be nice to also extract an indication of the expected
    parse, which is partly indicated by the row and column labels. I have
    thought of going in the opposite direction--that is, creating an XML
    structure for paradigms, then automatically converting that into a DocBook
    . But there are other problems with that.

    Mike Maxwell