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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2017)
-> + Issue with Processing Instruct... (2)
-> + problem converting json to XML... (2)
-> + Problem base64 decoding string... (3)
-> + Problems posting multipart for... (5)
-> + trouble with download of price... (2)
-> + Problem with http-post not bei... (3)
-> + path problem, xps_file:writeAl... (9)
-> + Xquery update support? (2)
-> + problem with Stylus studio try... (5)
-> + adding dtd reference to xml ou... (4)
-> + xquery escaping ambarsand when... (3)
-> + Whitespace problem when return... (5)
-> + Problem with namespace prefix ... (5)
-> - Sending via SFTP returns unexp... (1)
-> + Query and Sftp clent (4)
-> + xquery and try - catch (3)
-> + Query + ddtek:http-post optio... (5)
-> + Example files referenced in do... (3)
-> + Automatic Error Detection and ... (3)
-> + Working with result of ddtek:h... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
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()
{
typeswitch($n)
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
};
local:swizzle(fn:doc("D:\try.xml"))

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

Posttop
(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.

Regards
- Srini

   
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.