xsi:type attribute ignored during validation

Bug #1023362 reported by Markos Zaharioudakis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Cezar Andrei

Bug Description

I think that the following query should return xs:integer, but it returns xs:untypedAtomic.

import module namespace schema = "http://www.zorba-xquery.com/modules/schema";

declare variable $doc :=
<numbers xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xs_long xsi:type="xs:long">1</xs_long>
<xs_long xsi:type="xs:integer">2</xs_long>
<xs_long>3</xs_long>
</numbers>
;

declare variable $vdoc := validate lax { $doc };

schema:schema-type(data(($vdoc//xs_long)[2]))

Tags: hotlist

Related branches

Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 2.9
Chris Hillery (ceejatec)
tags: added: hotlist
Changed in zorba:
status: New → Fix Committed
Chris Hillery (ceejatec)
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.