docbook-apps

  • 1.  Horizontal Space inside Table

    Posted 02-17-2011 20:27


    Hello group:
    Hope that this is the right list for this sort of question. I have a challenge that I could use some help to find the best way to do this.
    I have a table, <informaltable> to be more specific, which somewhat represents print out of XML codes.
    Now if this were just regular content I could set it in something like <programlisting> or some other preformatted element, but in this case the elements are marked up as inside a table with each line of code as a row.

    So the output I am looking to make is got to look somewhat XML code - like the following example.

    <sect1>text
    <para>some text</para>
    <itemizedlist>
    <listitem> etc..
    </itemizedlist>
    </sect1>

    an example using "_" to ensure spacing is depicted as desired.
    <sect1>text
    ____<para>some text</para>
    _______<itemizedlist>
    ___________<listitem> etc..
    _______</itemizedlist>
    </sect1>

    To show the output needs to be indented as in the above examples.
    It is in a table...
    <row><entry><sect1>text</entry><row>
    <row><entry><para>some text</para></entry></row>
    <row><entry><itemizedlist etc..

    and output looks like :
    <sect1>text

    <para>some text</para>
    <itemizedlist>
    <listitem> etc..

    This is not really a problem in HTML can use or CSS to create indents.
    However I need something that will work for FO/PDF output as well.

    Is there any docbook tool, processing instruction, code, that can do this?
    Someone else must have had something similar?
    What is best way to get horizontal spacing and indents to pass through, like preformatted text, inside a table??

    Just looking for some ideas.

    Thank you in advance.

    /Gregorio




  • 2.  Webhelp and Modular Docs

    Posted 04-01-2011 16:27
    Hello everyone:



    While attempting to use Webhelp to generate some HTML from Docbook files, I came upon a modular document, that contains XInclude references to other documents. Webhelp failed there.
    Which leads me to ask, Is there any way that the Webhelp can process modular documents that use the xi:include?

    If I actually combine the documents into a single XML file, then it works just fine.
    However this defeats the purpose of having modular documents.
    So the question is can Webhelp be used for modular documents?


    Thank you in advance.

    /Gregorio






  • 3.  Re: [docbook-apps] Webhelp and Modular Docs

    Posted 04-01-2011 16:39
      |   view attached
    Hi Gregorio,
    Give the attached build.xml a try. It includes support for resolving
    xinclude. This version also supports profiling via 2-pass profiling (the
    xinclude step also does the profiling).

    Note that if you're doing complicated stuff like pulling in sections
    from sibling directories and those sections contain images, there will
    be problems. I'll need to do some fancy stuff to collect images in cases
    like that, make sure there are no naming collisions, and put them all in
    the output dir.

    David

    On 04/01/2011 11:27 AM, gpevaco@aol.com wrote:
    > Hello everyone:
    >
    >
    >
    > While attempting to use Webhelp to generate some HTML from Docbook files, I came upon a modular document, that contains XInclude references to other documents. Webhelp failed there.
    > Which leads me to ask, Is there any way that the Webhelp can process modular documents that use the xi:include?
    >
    > If I actually combine the documents into a single XML file, then it works just fine.
    > However this defeats the purpose of having modular documents.
    > So the question is can Webhelp be used for modular documents?
    >
    >
    > Thank you in advance.
    >
    > /Gregorio
    >
    >
    >
    >


    Attachment(s)

    xml
    build.xml   6 KB 1 version


  • 4.  AW: [docbook-apps] Webhelp and Modular Docs

    Posted 04-04-2011 07:50
    Hi Gregorio,



    To get XInclude to work for your documentation, you have to enable
    XInlcude in your xslt parser. This allows you to combine the linked
    files at "pre-processing-time" before your DocBook document is rendered.
    The XInclude chapter in Bob's book describes how to do this from the
    command line for both Xalan and Saxon.



    If you are using the build software Ant, then you can refer to the Ant
    Manual in the XSLT target on how to do this. This got a lot easier in
    Ant 1.8.1.





    Regards,

    Scott







    Von: gpevaco@aol.com [mailto:gpevaco@aol.com]
    Gesendet: Freitag, 1. April 2011 18:27
    An: docbook-apps@lists.oasis-open.org
    Betreff: [docbook-apps] Webhelp and Modular Docs



    Hello everyone:


    While attempting to use Webhelp to generate some HTML from Docbook
    files, I came upon a modular document, that contains XInclude references
    to other documents. Webhelp failed there.
    Which leads me to ask, Is there any way that the Webhelp can process
    modular documents that use the xi:include?

    If I actually combine the documents into a single XML file, then it
    works just fine.
    However this defeats the purpose of having modular documents.
    So the question is can Webhelp be used for modular documents?



    Thank you in advance.



    /Gregorio




  • 5.  Re: AW: [docbook-apps] Webhelp and Modular Docs

    Posted 04-04-2011 12:00
    On 04/04/2011 02:49 AM, Speights, Scott wrote:
    > Manual in the XSLT target on how to do this. This got a lot easier in
    > Ant 1.8.1.

    Actually, in 1.8.0. That's exactly what I do in the updated build.xml I
    sent to Gregorio :-)

    David