There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-35b323be-5803-44e3-9fb9-8cfdac966d81 XWIKI-13100 Open

Office cannot import splitted document with numbering

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-2c62281c-9b44-462c-b7b9-e3b5f60754b9 Nikita Petrenko on 13/Feb/26 10:37
 
Reproducible on demo XWiki Jetty/HSQLDB {{17.10.3}} with LibreOffice {{25.8.4.2}} with sample on this ticket.

However, if I create from scratch {{odt}} or {{doc}}, {{docx}} in LibreOffice with numbered headings level 1, level 2 and level 3 with lorem (type {{lorem}} and press {{F3}} to generate dummy text) content.

When importing this document into XWiki and selecting split pages by Heading 1 & 2 & 3, the result is:

* A parent wiki page titled {{Test 3}}, containing:
** two internal links of the page pointing to the child pages {{1One}} and {{2Next}} (both derived from Heading 1).
* First two child pages:
** {{1One}} and {{2Next}}, each containing the content that follows its respective Heading 1 and in the end page {{1One}} has internal links pointing to sub-pages {{1.1Two}} and {{1.2Three}}. Page {{2Next}} has content and link to sub-page {{2.1Next}}
* Next sub-child pages:
** {{1.1Two}} and {{1.2Three}} respective Heading 2 has their content
** {2.1Next}} respective Heading 2 has content with internal link to {{2.1Sub next}} - Heading 2, that page has link to last sub-page {{2.1.1Ending}} - Heading 3

I'd say behavior of splitting is expected if Document is created in LibreOffice and OnlyOffice (I've not tested I don't have it locally) since XWiki listens to such servers. And either it's issue specific to how
LibreOffice XWiki with configurated office server converts/parses MicrosoftOffice document during importing to XWiki import or this limitation of usage XWiki with office files specificly created in MicrosoftOffice or Office365.

My files and images

*  [^LibreOffice odt document with numbered headings.odt]
*  [^LibreOffice docx document with numbered headings.docx]
*  [^Wiki page 1One.png]
*  [^Wiki page 2Next.png]
*  [^Wiki page 2.1Sub next.png]
*  [^Wiki page 2.1.1Ending.png]