← Back to team overview

zorba-coders team mailing list archive

[Bug 854723] Re: Internal Fatal Error with validate-in-place

 

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

variable $hostInfo :=<xqdoc xmlns="http://www.xqdoc.org/1.0";>
    <control>
        <date>TS4J5UJ<?processinginstruction aaa?></date>
        <version>N/A</version>
    </control>
    <module type="library">
        <uri>DGQEb8Q</uri>
    </module>
</xqdoc>;


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


** Attachment removed: "to reproduce"
   https://bugs.launchpad.net/zorba/+bug/854723/+attachment/2431367/+files/testseg.xq

-- 
You received this bug notification because you are a member of Zorba
Coders, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/854723

Title:
  Internal Fatal Error with validate-in-place

Status in Zorba - The XQuery Processor:
  New

Bug description:
  This bug is due to the same incorrect assumption reported in bug 854688. 
  Invoking schema:validate-in-place creates several UpdSetElementType operations. Their apply method expects that if a node has a typedvalue it also contains a single node with text type. This is not true in the following example.

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


References