zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04038
[Bug 912586] Re: Zorba Internal Fatal error when applying a PUL changes the type of a typed node
** Changed in: zorba
Assignee: Federico Cavalieri (fcavalieri) => Cezar Andrei (cezar-andrei)
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/912586
Title:
Zorba Internal Fatal error when applying a PUL changes the type of a
typed node
Status in Zorba - The XQuery Processor:
New
Bug description:
If a PUL changes the type of a typed node there is a Zorba Internal
Fatal error when applying.
Query
import schema namespace d="http://www.zorba-xquery.org/schema" at
"upd14.xsd";
declare revalidation lax;
declare variable $doc:=validate{<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zorba-xquery.org/schema">
<a attr="12"/>
<b>
<bb/>
</b>
<c/>
</root>};
rename node $doc//d:b as fn:QName("http://www.zorba-
xquery.org/schema", "newb");
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="rootType"/>
<xs:complexType name="rootType">
<xs:sequence>
<xs:element name="a" type="aType"/>
<xs:choice>
<xs:element name="b" type="bType"/>
<xs:element name="newb" type="newbType"/>
</xs:choice>
<xs:element name="c" type="cType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="aType">
<xs:attribute name="attr" type="xs:int"/>
</xs:complexType>
<xs:complexType name="bType">
<xs:sequence>
<xs:element name="bb" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="newbType">
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="cType">
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/912586/+subscriptions
References