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
Ethan SteinSubject: copy/modify with Stylus Studio 2007 R2
Author: Ethan Stein
Date: 12 May 2009 08:38 PM
Originally Posted: 12 May 2009 08:28 PM
Has the copy/modify/replace value of functions changed between Stylus Studio 2007 R2 and Stylus Studio 2008R2/2009?

If so, what was the original implementation? The reason I ask is that apparently in SS2007R2, the following does not work:

for $CurrentYearPlan in $xPRSXMLInput/ExtractData/CurrentYearPlan
copy $CYPlan := $CurrentYearPlan
for $planName in $CYPlan/*[contains(upper-case(local-name()),"PLANNAME")]
replace value of node $planName with local:transformPlanName($planName/text())
) return $CYPlan

I'm hoping someone can tell me what has changed so I can modify my xquery accordingly.

Just to clarify,

In 2008R2/2009, the following works:

copy $CYPlan := $CurrentYearPlan

However, in 2007R2, you must use:

let $CYPlan := copy($CurrentYearPlan)


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.