docbook-apps

  • 1.  Basic use of WordML roundtrip

    Posted 05-30-2010 13:56
    Hi there,

    I am trying to understand how to use wordml rountrip. I figure I
    could try first to generate a wordml from a docbook and then back
    again to docbook. I tried with the following:


    <info></info>



    Which was converted to WordML (using docbook 1.75.2), and then back
    again to docbook:


    <info xmlns="http://docbook.org/ns/docbook">
    <dbk:info xmlns:dbk="http://docbook.org/ns/docbook">
    <dbk:title>My Title</dbk:title>
    </dbk:info>
    </info>

    The output does not mention anymore that it was an article. Are there
    any minimal example on how to use WordML rountrip out there ? Where
    can I find the basic unit test for it ?

    Thanks
    --
    Mathieu



  • 2.  Re: Basic use of WordML roundtrip

    Posted 05-30-2010 14:06
    If this is of any help, the temporary blocks.xml file is:


    <dbk:article xmlns:dbk="http://docbook.org/ns/docbook"
    xmlns:d="http://docbook.org/ns/docbook"
    xmlns:rnd="http://docbook.org/ns/docbook/roundtrip"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    <dbk:para rnd:style="info-title">My Title</dbk:para>
    </dbk:article>


    So blocks2dbk.xsl is the script that drop the 'article' information...

    On Sun, May 30, 2010 at 3:56 PM, Mathieu Malaterre
    <mathieu.malaterre@gmail.com> wrote:
    > Hi there,
    >
    >  I am trying to understand how to use wordml rountrip. I figure I
    > could try first to generate a wordml from a docbook and then back
    > again to docbook. I tried with the following:
    >
    >

    >  
    <info></info>
    >  

    >

    >
    > Which was converted to WordML (using docbook 1.75.2), and then back
    > again to docbook:
    >
    >
    > <info xmlns="http://docbook.org/ns/docbook">
    >  <dbk:info xmlns:dbk="http://docbook.org/ns/docbook">
    >    <dbk:title>My Title</dbk:title>
    >  </dbk:info>
    > </info>
    >
    > The output does not mention anymore that it was an article. Are there
    > any minimal example on how to use WordML rountrip out there ? Where
    > can I find the basic unit test for it ?
    >
    > Thanks
    > --
    > Mathieu
    >



    --
    Mathieu