Validate in-place causes Zorba Internal Fatal error if a node which might have a simple type contains other nodes

Bug #912593 reported by Federico Cavalieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Cezar Andrei

Bug Description

The following query crashes zorba with an Internal fatal error.

Query
import schema namespace d="http://www.zorba-xquery.org/schema" at "upd14.xsd";
import module namespace schema = "http://www.zorba-xquery.com/modules/schema";

declare revalidation lax;

declare variable $doc:=<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.zorba-xquery.org/schema">
<a/>
</root>;

schema:validate-in-place($doc);

Schema

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.zorba-xquery.org/schema" xmlns="http://www.zorba-xquery.org/schema"
    elementFormDefault="qualified">

    <xs:element name="root" type="xs:int"/>

</xs:schema>

Related branches

Changed in zorba:
assignee: Federico Cavalieri (fcavalieri) → nobody
assignee: nobody → Cezar Andrei (cezar-andrei)
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.