Project

Profile

Help

Bug in Stylus Studio ?

Added by Anonymous about 15 years ago

Legacy ID: #6216671 Legacy Poster: NickDiamond (nickdiamond_80)

Hello, the following (very) easy Xquery seems not to work in Stylus Studio. <result> { let $test := substring('Beatles',1,4) return element {'row'} { data($test)} } </result> It should return : <?xml version="1.0" encoding="UTF-8"?> <result> <row>Beat</row> </result> (this is what I get running saxon with my java IDE. This is what Stylus Stdio returns : <result> <row>les</row> </result> Did I do something wrong ? I only have a problem in St.St. with substrings... when I run : ... let $test := substring('Beatles',2) ... I get ... "es" ... seems that the string get read frim behind !!??!! Can someone help me with this case , or tell me where I can post this ? greets, ND


Replies (6)

Please register to reply

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6216816 Legacy Poster: Michael Kay (mhkay)

This works for me, in Stylus Studio build 1050g, whether I select Saxon 9.0.0.2 or "Built In" or DataDirect XQuery as the query processor. If you're sure you're running Saxon then I'll forward the enquiry for you - just tell me which version - but it would probably be simpler if you raised it yourself. They are usually quite responsive.

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6216826 Legacy Poster: minollo (minollo)

What processor are you using in Stylus Studio? And which version of Stylus Studio are you running? Using v2009, DataDirect XQuery, Saxon and the debugging built-in processor all return the expected result for me: <result><row>Beat</row></result> BTW, you may want to consider posting Stylus specific questions to the stylusstudio.com/SSDN development forum.

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6216840 Legacy Poster: David Lee (daldei)

I use StylusStudio HEAVILY with Saxon (hours a day somtimes) so of course I was curious about this. I just ran your sample query on all 3 builtin Stylus processors and got the same result: <result><row>Beat</row></result> I ran with DataDirect Xquuery Built-in Saxon 9.0.0.2 This is using StylusStudio 2008 Build 1147f If your not getting this the same with all 3 then I suggest contacting sylusstudio tech support, they are really awsome. -David

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6223742 Legacy Poster: NickDiamond (nickdiamond_80)

I am using Stylus Studio 2008 XML Professional Suite, Build 1050g ! Java-Vresion 1.6_11 I tried following processors : - Build-in - Saxon 9.0.0.2 - External (?) Every time I get the wrong result. I just installed the software some days ago, and did not change any settings... Using Saxon with java-eclipse instead of St.St. I get the correct result with my Query ! I am waiting to get a user account for the St.St.forum, then I will post this problem there too.

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6224443 Legacy Poster: Michael Kay (mhkay)

I'm completely mystified by this - but it's clearly something specific to Stylus, rather than to Saxon. As Minollo is on the trail, I'm sure he'll help you get to the bottom of it. (I did wonder whether this might be an XML parser problem. There are some really bad bugs in the version of Xerces that ships with JDK 6. But I can't see how that could be a factor. Does the result depend at all on how you run the query, or how you display the output?)

RE: Bug in Stylus Studio ? - Added by Anonymous about 15 years ago

Legacy ID: #6226749 Legacy Poster: minollo (minollo)

Feel free to email stylus-field-report at progress dot com directly; sometimes SSDN account confirmations get blocked by spam filters... I am running 1.6_07, and, as I mentioned, I can't reproduce the behavior you are describing; when emailing us, please include the exact XQuery you are executing and details about the Stylus Studio edition (Professional? Enterprise?) and build number that you can find in Help > About. Thanks.

    (1-6/6)

    Please register to reply