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
Jack TanSubject: Problems with conversion from Stylus Studio Enterprise Edition 2006 rel3 to 2007 rel2
Author: Jack Tan
Date: 14 Jun 2007 10:56 AM
Originally Posted: 14 Jun 2007 05:08 AM
I am considering moving from 2006 rel3 to 2007 rel2. Both are XML Enterpise Editions. To test compatibility I used the attached code with some test files.

Program that run in 2006 rel3 (Saxon 8.9.0.3) but fail to run in 2007 rel2 (Saxon 8.7.1) of the Studio. In addition, in Enterprise Edition I can not use Edit Functions in the Studio (system shows only 5 options - the rest is blank?!?)

Any suggestions?

JTan

==========
declare namespace ma = "http://www.example.com/problem";

declare function ma:add2Dict( $inputList, $dictionary )
{
let $info := $inputList[1]
let $rest := fn:subsequence($inputList,2)
let $dictionary := if (fn:empty($info)) then
$dictionary
else
( $dictionary,
<var>
{$info/*}
</var>)
return
if (fn:empty($rest)) then
$dictionary
else
ma:add2Dict( $rest, $dictionary)
};




let $doc1 := "test.xml"
let $doc2 := "test2.xml"

let $test1 := doc($doc2)//test/*

return ma:add2Dict($test1,())

======= where test.xml
<?xml version="1.0"?>
<test>
<info><name>initTimer</name><semantics>function</semantics><scope>global</scope><id>11</id></info>
<info><name>init_tracking</name><semantics>function</semantics><scope>global</scope><id>12</id></info>
<info><name>Get_Hlwrld</name><semantics>function</semantics><scope>global</scope><id>15</id></info>
<info><name>RestoreState</name><semantics>function</semantics><scope>global</scope><id>17</id></info>
<info><name>stopTimer</name><semantics>function</semantics><scope>global</scope><id>28</id></info>
<info><name>getTmPar</name><semantics>function</semantics><scope>global</scope><id>29</id></info>
<info><name>StateSrvc</name><semantics>function</semantics><scope>global</scope><id>30</id></info>
</test>
test2.xml
======= test2.xml
<?xml version="1.0"?>
<test>
<info><name>sysPressure</name><semantics>system</semantics></info>
<info><name>sysTemperature</name><semantics>system</semantics></info>
<info><name>sysBattVoltage</name><semantics>system</semantics></info>
<info><name>sysRotation</name><semantics>system</semantics></info>
<info><name>sysCommBufSize</name><semantics>system</semantics></info>
<info><name>sysCommBuf</name><semantics>system</semantics></info>
</test>


Unknowntest.xquery
test script - simulates dictionary updat

Postnext
(Deleted User) Subject: Problems with conversion from Stylus Studio Enterprise Edition 2006 rel3 to 2007 rel2
Author: (Deleted User)
Date: 15 Jun 2007 11:39 AM
Hi Jack,
I tried running your query on both Stylus 2006 rel 3 and Stylus 2007 rel 2 and I got 6 <var> entries as result in both cases. Can you tell us what are the results you get?
Also, what do you mean when you say 'Edit Functions'?

Thanks,
Alberto

Posttop
Jack TanSubject: Problems with conversion from Stylus Studio Enterprise Edition 2006 rel3 to 2007 rel2
Author: Jack Tan
Date: 18 Jun 2007 03:28 PM
Alberto,

I re-run the example and this time after the system has been re-booted there was no problem in execution. It seems that just rebooting the system was enough.

The other problem was with Edit pull-down menu; in the initial try, all but first five entries were blank. This problem was also fixed after reboot.

2006 Studio crashed often generating dump files and I hope that new version will be more stable ;-)

Thanks

Jack

 
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.