Re: Lists format in Word documents

Hussein Shafie <[email protected]> Thu, 21 Aug 2014 19:02:26 +0200
Newsgroups gmane.text.xml.xfc.general
Message-ID <[email protected]>
On 08/21/2014 03:22 PM, SCHWARZ Matthias wrote:
>
> we’re currently trying to generate lists in Word documents which should
> behave as such in MS Word, e.g. with the attached fo.xsl file.
> Unfortunately Word only detects some of the items as list items
> (normally at least the first one), but not all of them and for nested
> list items (e.g. 3.1, 3.2, …) this seems to behave even worse. According
> to the XMLmind XSL-FO Converter conformance statement lists should
> basically be supported (at least list-items and list-item-bodies).

I'm sorry but there is a confusion here.

XFC indeed supports fo:list-block, fo:list-item, fo:list-item-body and 
fo:list-item-label.

This means that we guarantee that the generated DOCX *looks* like what 
specified by the standard formatting objects for lists 
(http://www.w3.org/TR/xsl/#d0e12374)

This does not mean that using the standard formatting objects for lists 
is sufficient to generate MS-Word *native* lists (that is, using DOCX 
w:numbering, w:abstractNum, w:num).




> So we’d like to know if this is already the best output we can get, or if
> we could improve that somehow. I’ve also attached one of our generated
> docx files with the current output.
>
> Additionally we’d like to know if it’s possible to generate nested
> linked lists. So when the user e.g. removes one item, the following
> ones, including their children, should be updated accordingly.

That's what I call MS-Word *native* lists. Native lists may be single 
level lists or multi-level lists.



>
> Involved program: XMLmind XSL-FO Converter Engine
>
> XFC-Version: 4.7
>
> OS: Windows 8.1
>
> MS-Word: 2010 & 2013
>
> Java Version: 1.7
>

Please send us .fo sample files, not .xsl stylesheets. To make things 
worse, your list_example.itm.fo.xsl is not self-contained. Therefore, in 
principle, your support request should have been rejected.

This being said, after a quick examination of your 
list_example.itm.fo.xsl, you don't seem to use any of the XFC XSL-FO 
extension attributes which allow to control the generation of proper lists.

May be you simply need to use these extension attributes. See 
http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#lists

Multi-level lists (e.g. numberings like 3.2.1, III-A-1, etc) are 
currently not supported using our rather simple extension attributes.

Currently the only way to generate such native multi-level lists is to 
use XFC to generate DOCX having named styles (XFC v5+ only). See 
http://www.xmlmind.com/foconverter/_distrib/doc/user/user_styles.html

Here's a sample DOCX generated using this facility:

http://www.xmlmind.com/foconverter/samples/styles.docx

This sample is described in this page:

http://www.xmlmind.com/foconverter/features.html





--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support