Hello CXML developers.
I want to report a bug that I reached working with an ODF (Open Document Format) file, more precisely with the content.xml file that is part of it.
The bug has occurred when I try to serialize a document that is just parsed, you can reproduce it with this code:
(let ((document (with-open-file (stream (merge-pathnames #P"content.xml") :direction :input :element-type '(unsigned-byte 8)) (cxml:parse stream (stp:make-builder))))) (with-open-file (salida #P"1.xml" :direction :output :if-exists :overwrite) (stp:serialize document (cxml:make-character-stream-sink salida))))
The output 1.xml file is incorrect. Check the second line, columna 91841, here with some context:
table:named-expressions/</office:spreadsheet></office:body></office:document-content>le-row table:style-name="ro1"><table:table-cell table:number-columns-repeated="1024"/></table:table-row></table:table>table:named-expressions/</office:spreadsheet></office:body></office:document-content>ing" table:number-columns-spanned="1" table:number-rows-spanned="3">text:pDICIEMBRE </text:p></table:table-cell>
The original content.xml file is attached.