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
kir sidSubject: Stylus Studio has encountered a problem and needs to close!!!
Author: kir sid
Date: 28 Apr 2006 04:59 AM
Have an XQUERY code - just a recursive function and its calling

declare function local:swizzle($n as node()) as node()
case $pi as processing-instruction()
return processing-instruction {name($pi)} {$pi}
case $cm as comment ()
return comment {$cm}
case $t as text ()
return text {$t}
case $a as attribute()
return attribute {fn:name($a)} { fn:string($a) }
case $e as element()
return element
{ fn:local-name($e) }
{ for $c in $e/(* | @* | text() | comment() | processing-instruction()) return local:swizzle($c) }
case $d as document-node()
return document
{ for $dd in $d/(*| @* | text()| comment()| processing-instruction()) return local:swizzle($dd) }
default return $n

and have a simple XML
<?xml version="1.0" encoding="UTF-8"?>
<m_action name="var"/>

Running of code written above with stylus studio 2006 Prof Edition (Build 501h) lead to fatal error with no diagnosis. Application just closed!!!! But if one change calling of local:swizzle to local:swizzle(fn:doc("D:\try.xml")/*), then no problem

(Deleted User) Subject: Stylus Studio has encountered a problem and needs to close!!!
Author: (Deleted User)
Date: 28 Apr 2006 09:10 AM
Thankyou Kir Sid.

We are able to reproduce it the problem you reported.

We will investigate it.

- Srini

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!  

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.