Opened 9 years ago

Closed 9 years ago

#126 closed defect (fixed)

XML Writer Error

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 0.2.0
Component: Matreshka - XML Processor Version: 0.1.1
Keywords: Cc:

Description

Trying to make a copy of an XML using SAX.Parser+Writer pair we got an error.

XML Example:
<?xml version="1.0" encoding='UTF-8'?>
<asp:root xmlns:asp="http://www.ada-ru.org/ASP">
<asp:with package="League.Calendars.ISO_8601"/>

<html xmlns="http://www.w3.org/1999/xhtml">
<p>Текущее время
<asp:expression>

League.Calendars.ISO_8601.Image(League.Calendars.Clock)

</asp:expression>
</p>
</html>

</asp:root>

Error like:

Catchpoint 1, CONSTRAINT_ERROR at 0x00007ffff76da535 in xml.sax.writers.start_element (self=..., namespace_uri=..., local_name=..., qualified_name=...,

attributes=<value optimized out>)
at /home/godunko/Matreshka/matreshka/source/xml/sax/xml-sax-writers.adb:340

340 raise Constraint_Error

/sax_events_printer A.xml

(Fatal_Error) 1:93: 'syntax error'

raised CONSTRAINT_ERROR

Change History (3)

comment:1 by vadim.godunko, 9 years ago

In [2036]:

Add automated test for #126.

Refs #126.

comment:2 by vadim.godunko, 9 years ago

In [2037]:

Fix handling of namespace mappings.

Refs #126.

comment:3 by vadim.godunko, 9 years ago

Component: MatreshkaMatreshka - XML
Milestone: 0.2.0
Resolution: fixed
Status: newclosed
Version: 0.1.1
Note: See TracTickets for help on using tickets.