https://bugs.freedesktop.org/show_bug.cgi?id=67485
Priority: medium
Bug ID: 67485
Assignee: [email protected]
Summary: FILESAVE: Processing Instructions Stripped from XML
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 4.1.0.4 release
Component: Writer
Product: LibreOffice
Problem description:
LibreOffice has limited automation capabilities. To get around that limitation,
manipulating the internal XML is an option.
For example, for complex search and replace with custom formatting, filling
tables with variable numbers of rows, or customized removal of sections.
Currently using processing instructions to delimit complex items like table
rows, e.g. <?dec BEGIN SOMETHING?>LibreOffice XML here<?dec END SOMETHING?>.
Alternatives like inserting comments don't work, because the insertion points
aren't predictable.
According to http://www.w3.org/TR/2008/REC-xml-20081126/#sec-pi, "processing
instructions MUST be passed through to the application."
Steps to reproduce:
1. Extract content.xml from ODT
2. Add some custom processing instructions directly (e.g. <?abc LIKE THIS?>)
into the XML
3. Update content.xml
4. Make changes to the document by the regular interface
5. Extract content.xml
6. These processing instructions will be removed
Current behavior:
Strips out all but the first (XML) processing instruction in content.xml.
Expected behavior:
Don't remove processing instructions!
Operating System: Ubuntu
Version: 4.1.0.4 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs