** Summary changed:

- Setting a prefixed default value for an attribute typed as xs:QName makes 
zorba give incorect error.
+ Setting a prefixed default value for an attribute typed as xs:QName makes 
zorba give incorrect error.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/925366

Title:
  Setting a prefixed default value for an attribute typed as xs:QName
  makes zorba give incorrect error.

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Upon import of the following schema in a query, Zorba crashes.

  schema.xsd
  =========
  <?xml version="1.0" encoding="UTF-8"?>
  <xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema";
    xmlns:my="http://ns.example.com/";
    targetNamespace="http://www.example.com/";>
    <xs:element name="element">
      <xs:complexType>
        <xs:attribute name="type-name" type="xs:QName" 
default="my:default-value"/>
      </xs:complexType>
    </xs:element>
  </xs:schema>

  
  Query
  =====
  import schema namespace pul = "http://www.example.com/"; at "schema.xsd";
  ()

  
  It seems to be because the prefix binding of "my" (the default value's 
prefix) is forgotten outside of the schema (removing this prefix does not lead 
to a crash).

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/925366/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to