XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Hans-Juergen RennauSubject: Path evaluation bug (?) concerning constructors
Author: Hans-Juergen Rennau
Date: 04 Sep 2007 04:13 AM
Hello, hello,

if I am not mistaken, there is a bug in the built-in processor, concerning the evaluation of path expressions. If the first step evaluates to the empty sequence and the second step is a constructor, the constructor is evaluated, although it shouldn't be.

Trying out other expressions for the second step - e.g. evaluating to an element node or a literal - the evaluation is correct: the whole path evaluates to the empty sequence.

Trying out other processors (Saxon, DataDirect), the evaluation is correct.

In this example, $sw_withAtt_ty evaluates to the empty sequence, and $cfg evaluates to a node. These expressions
...
$sw_withAtt_ty/attribute yogiAtt {},
$sw_withAtt_ty/<yogiElem/>,
$sw_withAtt_ty/element {"yogiElem2"} {},
$sw_withAtt_ty/$cfg,
$sw_withAtt_ty/"yogiLiteral",
...
produce three yogi's, but no copy of $cfg, nor the literal.

With kind regards -
Hans-Juergen Rennau

Posttop
Alberto MassariSubject: Path evaluation bug (?) concerning constructors
Author: Alberto Massari
Date: 04 Sep 2007 08:09 AM
Thanks for the report; we are working on a fix.

Thanks,
Alberto

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.