Bug 140593 - EXPORT LibreOffice crashes on export XSLT 2.0
Summary: EXPORT LibreOffice crashes on export XSLT 2.0
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-22 11:14 UTC by Stéphane
Modified: 2021-02-22 12:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane 2021-02-22 11:14:51 UTC
Description:
I made a 2.0 XSLT filter in order to convert a document into a specific XML structure.

When I try to export the LibreOffice document to that xtructure, it générâtes an error. but there is no information on what part of the XSL caused the process to fail.

Steps to Reproduce:
1.In LibreOffice Writer, create a filter based on this XSL (the export format is XML) https://github.com/cnigfr/structuration-reglement-urbanisme/blob/master/outils/conversion-FODT-2-CNIG/fodt2CNIG.xsl
2.Check the requires 2.0 transformation and save the filter
3.Open this LibreOffice document https://github.com/cnigfr/structuration-reglement-urbanisme/blob/master/outils/conversion-FODT-2-CNIG/exemple%20PLU_Jaleyrac.fodt 
4.Export the document using the filter created above

Actual Results:
We get a global error and the export file is not generated

Expected Results:
the export should run successfully


Reproducible: Always


User Profile Reset: No



Additional Info:
the XSL mentioned in the reproducing steps is valid and produce the expected result when applied to the mentioned LibreOffice file using for example Altova XML spy.
Comment 1 Stéphane 2021-02-22 11:18:11 UTC
This is part of a national project and in the future, many users will use this filter. This is a critical bug for us.
Comment 3 himajin100000 2021-02-22 12:46:07 UTC
Actually I haven't tested myself whether this solution works.
Comment 4 Stéphane 2021-02-22 12:56:45 UTC
Yes It works fine once the extension you proposed is install.