Dear OOXML/Docbook experts, I would like to transform a Microsoft Word document with the help of the Docbook XSLT roundtrip stylesheets into DocBook XML markup. I read the Web page http://www.explain.com.au/oss/docbook/, which gives the procedure to go from WordXML to Docbook as follows:
xsltproc -o normalised.xml wordml-normalise.xsl my-word.xml xsltproc -o sections.xml wordml-sections.xsl normalised.xml xsltproc -o blocks.xml wordml-blocks.xsl sections.xml xsltproc -o my-docbook.xml wordml-final.xsl blocks.xmldocbook-xsl-1.75.2/doc/roundtrip However, uing the latest 1.75.2 DocBook XSLT stylesheet distribution in the roundtrip directory I do not find the four xsl files mentioned, but there are quite a few more: docbook-xsl-1.75.2/doc/roundtrip/index.html docbook-xsl-1.75.2/doc/roundtrip/pages.template.html docbook-xsl-1.75.2/doc/roundtrip/reference.css docbook-xsl-1.75.2/doc/roundtrip/wordml.template.html docbook-xsl-1.75.2/roundtrip docbook-xsl-1.75.2/roundtrip/blocks-spec.xml docbook-xsl-1.75.2/roundtrip/blocks2dbk.dtd docbook-xsl-1.75.2/roundtrip/blocks2dbk.xsl docbook-xsl-1.75.2/roundtrip/dbk2ooo.xsl docbook-xsl-1.75.2/roundtrip/dbk2pages.xsl docbook-xsl-1.75.2/roundtrip/dbk2wordml.xsl docbook-xsl-1.75.2/roundtrip/dbk2wp.xsl docbook-xsl-1.75.2/roundtrip/normalise-common.xsl docbook-xsl-1.75.2/roundtrip/normalise2sections.xsl docbook-xsl-1.75.2/roundtrip/pages2normalise.xsl docbook-xsl-1.75.2/roundtrip/param.xml docbook-xsl-1.75.2/roundtrip/param.xsl docbook-xsl-1.75.2/roundtrip/sections-spec.xml docbook-xsl-1.75.2/roundtrip/sections2blocks.xsl docbook-xsl-1.75.2/roundtrip/specifications.xml docbook-xsl-1.75.2/roundtrip/template-pages.xml docbook-xsl-1.75.2/roundtrip/template.dot docbook-xsl-1.75.2/roundtrip/template.xml docbook-xsl-1.75.2/roundtrip/wordml2normalise.xsl Can somebody point me to the documentation how to use these (more recent?) files. Many thanks, Michel Goossens/CERN -----Original Message----- From: Nic Gibson [mailto:[email protected]] Sent: vendredi 22 janvier 2010 09:53 To: Steve Ball Cc: docbook Subject: Re: [docbook] OOXML On 22 Jan 2010, at 06:47, Steve Ball wrote: > Hi Nic, > > Firstly, an Office 2007 .docx document is simply a Zip file. Inside the Zip > is a file called word/document.xml. That file is very similar to an Office > 2003 WordML document, except that the XML Namespace URIs have been changed. > If you fix up the Namespace URIs you can process the document with the > DocBook Roundtrip XSL stylesheets (though I won't guarantee the results since > I have not tested this method). Hi Steve. I'm very familiar with the zip format. I hadn't realised that there was much similarity with the 2003 XML format. That is very useful to know. > > In principle, it will not be difficult to update the DocBook Roundtrip XSL > stylesheets to work with Office 2007 (at least the document.xml part). I just > haven't had the time lately to do it. If I can get the time added to the project I will have a good look at that. cheers nic --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
