[docbook-apps] Basic use of WordML roundtrip

2010-05-30 Thread Mathieu Malaterre
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:

article xmlns=http://docbook.org/ns/docbook; version=5.0
  sectioninfotitleMy Title/title/info
  /section
/article

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

?xml version=1.0?
info xmlns=http://docbook.org/ns/docbook;
  dbk:info xmlns:dbk=http://docbook.org/ns/docbook;
dbk:titleMy 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

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: Basic use of WordML roundtrip

2010-05-30 Thread Mathieu Malaterre
If this is of any help, the temporary blocks.xml file is:

?xml version=1.0?
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-titleMy 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.malate...@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:

 article xmlns=http://docbook.org/ns/docbook; version=5.0
  sectioninfotitleMy Title/title/info
  /section
 /article

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

 ?xml version=1.0?
 info xmlns=http://docbook.org/ns/docbook;
  dbk:info xmlns:dbk=http://docbook.org/ns/docbook;
    dbk:titleMy 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

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org