docbook-apps

  • 1.  Getting a nice look to xi:included xml

    Posted 08-03-2011 11:50
    Hi,

    I'm including XML files into my docbook file using the following technique.

    <example>

    <programlisting><xi:include xmlns:xi="
    http://www.w3.org/2001/XInclude"
    href="../../samples/address/address.xml"
    parse="text">
    <xi:fallback>SAMPLE MISSING:
    ../../samples/address/address.xml</xi:fallback>
    </xi:include>
    </programlisting>
    </example>

    I wonder about getting a better look to the included XML such as what is
    found at http://pastie.org/2284517

    Clearly I could write an XSLT after converting the docbook into HTML that
    formats and adds some style in css to the xml.

    I was wondering though if there is any better way to have a nice look to
    imported xml?

    Regards
    --
    Alex Muir
    Instructor | Program Organizer - University Technology Student Work
    Experience Building
    University of the Gambia
    http://sites.utg.edu.gm/alex/<https://sites.google.com/a/utg.edu.gm/utsweb/>

    Low budget software development benefiting development in the Gambia, West
    Africa
    Experience of a lifetime, come to Gambia and Join UTSWEB -
    http://sites.utg.edu.gm/utsweb/<https://sites.google.com/a/utg.edu.gm/utsweb/>



  • 2.  Re: [docbook-apps] Getting a nice look to xi:included xml

    Posted 08-03-2011 13:57
    On 3.8.2011 13:50, Alex Muir wrote:

    > I wonder about getting a better look to the included XML such as what is
    > found at http://pastie.org/2284517

    See

    http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html

    or if it is just for HTML output you can use some Javascript library
    like JUSH (http://jush.sourceforge.net/)

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




  • 3.  Re: [docbook-apps] Getting a nice look to xi:included xml

    Posted 08-03-2011 14:04
    Jirka,

    was too easy just added language="xml"

    <programlisting language="xml"

    Thanks Much

    On Wed, Aug 3, 2011 at 1:56 PM, Jirka Kosek <jirka@kosek.cz> wrote:

    > See
    >
    > http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html
    >



    --
    Alex Muir
    Instructor | Program Organizer - University Technology Student Work
    Experience Building
    University of the Gambia
    http://sites.utg.edu.gm/alex/<https://sites.google.com/a/utg.edu.gm/utsweb/>

    Low budget software development benefiting development in the Gambia, West
    Africa
    Experience of a lifetime, come to Gambia and Join UTSWEB -
    http://sites.utg.edu.gm/utsweb/<https://sites.google.com/a/utg.edu.gm/utsweb/>