Assigning to Cezar to get review.

** Branch linked: lp:~zorba-coders/zorba/bug-1002993

** Changed in: zorba
     Assignee: Markos Zaharioudakis (markos-za) => Cezar Andrei (cezar-andrei)

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  Assertion `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The following query and schema cause an assertion to fail.

  src/types/typeops.cpp:145: static zorba::store::SchemaTypeCode
  zorba::TypeOps::get_atomic_type_code(const zorba::XQType&): Assertion
  `type.type_kind() == XQType::ATOMIC_TYPE_KIND' failed.

  -------------- query --------------

  import schema namespace f =
  ""; at "forms.xsd";

  declare namespace an = "";;

  declare %an:no-cache %an:sequential function local:test2() {

     variable $form := validate strict {
         <f:hidden name="myid" value="3"/>
     replace value of node $form/f:hidden/@value with "hello";



  -------------- schema --------------

  <?xml version="1.0" encoding="utf-8"?>
  <xs:schema targetNamespace="";
             xmlns = "";

      <xs:complexType name="Form">
        <xs:any namespace="##targetNamespace" minOccurs="0"

        <xs:element name="form" type="Form"></xs:element>

      <xs:complexType name="Hidden">
           <xs:attribute name="name" type="xs:string" 
        <xs:attribute name="value" type="xs:anySimpleType"
              use="optional" />

      <xs:element name="hidden" type="Hidden"></xs:element>


To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to