Hussein, Thank you for a quick reply. I'm looking forward to your next, next version.
By the way, we took a look at the Roundtrip tool by Explain and it supports Word 2003 XML only. Best Regards, Gordon Sasamori -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Hussein Shafie Sent: Thursday, May 26, 2011 12:53 AM To: Gordon Sasamori Cc: [email protected] Subject: Re: [XFC] Converting DocBook XML to MSWord2007+ with paragraph styles On 05/25/2011 11:32 PM, Gordon Sasamori wrote: > > > We are considering using XFC to generate MSWord 2007 docx files from > DocBook XML. > > We have a show stopper issue since the Word file does not use Word > paragraph styles. I'm afraid you indeed have a show stopper issue. > > Here's the XML source of MSWord using paragraph style "Heading3". This > is what we expect. > > > > <w:p w:rsidR="001F6E13" w:rsidRDefault="002D5376" w:rsidP="00AC233B"> > > <w:pPr> > > <w:pStyle w:val="Heading3"/> > > * *</w:pPr> > > * *<w:bookmarkStart w:id="29" w:name="d5e35"/> > > * *<w:bookmarkEnd w:id="28"/> > > <w:r> > > * *<w:t>*1.2. Block Diagram*</w:t> > > * *</w:r> > > </w:p> > > > > Instead, the text are decorated explicitly. > > > > Here's the XML source of MSWord .docx generated by XFC. Note it does > not specify <w:pStyle> but uses explicit font decorations. > > <w:p> > > <w:pPr> > > * *<w:spacing w:before="200" w:after="0" w:line="240" w:lineRule="auto"/> > > </w:pPr> > > <w:r> > > <w:rPr> > > <w:rFonts w:ascii="Arial" w:hAnsi="Arial"/> > > <w:b/> > > <w:color w:val="000000"/> > > <w:sz w:val="29"/> > > </w:rPr> > > <w:t>*1.2. Block Diagram*</w:t> > > </w:r> > > </w:p> > > > > I've included the source XML, the docx generated, and what we wish to > have generated. > > > > Is there an option to turn on to use the Word's paragraph styles? Sorry but we do not support named styles. We consider implementing this feature --to a certain extent-- in XFC v4.6. It's too late for XFC v4.5 which should be released next month. > It seems a strange to lose the document structure in the DocBook. > Please understand that our product does *not* convert DocBook to docx. It converts XSL-FO (no structure whatsoever!) to docx. If you want to convert DocBook to Word format and the opposite way round, you may be interested in the DocBook "Roundtrip" Stylesheets. See http://docbook.sourceforge.net/release/xsl/1.75.1/doc/roundtrip/index.html Note that we have never tested this technology. We just know that it exists. -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

