docbook-apps

  • 1.  Fwd: Re: [docbook-apps] Storing data within Docbook?

    Posted 11-20-2013 00:39
    Dodgy mailing list software on some servers broke my habit of 'reply all'. Sorry - forwarding to the ML.

    Alright - I'll have to make my custom Docbook stylesheet ignore this entry then though when preprocessing it, right?

    On 19/11/13 19:02, davep wrote:

    On 19/11/13 00:34, Vadim Peretokin wrote:


    I'm transforming some data from an XML format into a Docbook table - but
    not all of the data in the XML is to be displayed in Docbook. I would,
    however, like to store it in my Docbook XML - because future
    transformations would like to read my Docbook XML and they'd need /all/
    of the data that went into it. I'd rather not introduce a secondary file
    for storing the extra data - this would bring complications and fragility.

    I thought of adding extra columns in the Docbook table and setting them
    to be hidden - but it doesn't seem to be possible to 'hide' a column
    easily. Another idea would be to store in in XML comments - which would
    still be accessible in my transformation as well.




    *if* all your cells to be hidden are in the same column

    <entry role='hidden'> to contain the cells which you do not want
    to be shown?






    regards



    --

    Vadim Peretokin
    Clinical Information Modeller
    nehta - National E-Health Transition Authority
    Level 2, 10 Browning St, West End, QLD 4101, Australia
    Phone: (0) 3023 8573
    Email: vadim.peretokin@nehta.gov.au<mailto:firstname.lastname@nehta.gov.au>
    Web: www.nehta.gov.au<http://www.nehta.gov.au>




    The information contained in this e-mail message and any accompanying files is or may be privileged or confidential. If you are not the intended recipient, any use, dissemination, reliance, forwarding, printing or copying of this e-mail or any attached files is unauthorised. This e-mail and any attachments may be subject to copyright. Copyright material should not be reproduced, adapted or communicated without the written consent of the copyright owner. If you have received this e-mail in error please advise the sender immediately by return e-mail or telephone and delete all copies. NEHTA does not make any representations or give any guarantees in respect of the accuracy or completeness of any information contained in this e-mail or attached files. Internet communications are not secure, therefore NEHTA does not accept any liability for the contents of this message or attached files.



  • 2.  Re: Fwd: Re: [docbook-apps] Storing data within Docbook?

    Posted 11-20-2013 07:52
    On 20/11/13 00:38, Vadim Peretokin wrote:
    > Dodgy mailing list software on some servers broke my habit of 'reply
    > all'. Sorry - forwarding to the ML.
    >
    > Alright - I'll have to make my custom Docbook stylesheet ignore this
    > entry then though when preprocessing it, right?

    Yes... No.
    Customize the docbook stylesheets?

    stylesheet

    import docbook.xsl

    template match='db:entry[@role='ignore']/>

    Will 'pre-process' whilst importing and styling
    the xml as normal?

    That's (another good part of) the docbook stylesheets.

    HTH




    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk