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
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Michael KweeSubject: Variable to persist value after assignment
Author: Michael Kwee
Date: 01 Jan 2007 11:36 PM
Hi there,

I have a problem in which when i need to persist the value of a variable to store the value of an element in the source xml so that i can use it in a condition (xsl choose) to determine the value to set for another element in the target xml.

During debugging mode, the variable is always set to the value of the element but will be reset to "Symbol Unknown" after the current parse.

Is there any way to persist the value of the variable ? If not, is there other ways of doing this ?

Thanks,
Michael Kwee

Postnext
Minollo I.Subject: Variable to persist value after assignment
Author: Minollo I.
Date: 01 Jan 2007 11:45 PM
If debugger shows "symbol unknwon" it means that the variable is out of scope at that point; you either need to change where it's defined, or you need to pass it through the chain of template invocations as a parameter...

Posttop
(Deleted User) Subject: Variable to persist value after assignment
Author: (Deleted User)
Date: 29 Jun 2007 01:44 AM
can we have an example for this problem

 
Topic Page 1 2 3 4 5 6 7 8 9 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.