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
Kurt WaldSubject: graphical representation for variables
Author: Kurt Wald
Date: 24 Mar 2007 06:10 PM
A graphical representation of variables on the mapper canvas would be helpful. This certainly doesn't fit well into the current source to target concept. Perhaps a variable could be inserted as a special node type into the target document tree to specify where it's definition should be placed positionally. The graphical representation could then provide a second target connector to assign the content of the variable to an element of the result document.

Postnext
(Deleted User) Subject: graphical representation for variables
Author: (Deleted User)
Date: 26 Mar 2007 10:18 AM
Hi Kurt,
can you elaborate on the subject?
- are you talking about XSLT or XQuery mapper?
- do you need to model global/external variables, template variables or temporary variables like inside a for-each or a FLWOR statement?
- can you draw a fake screenshot to better represent how the connection should be drawn?

Thanks for your suggestions,
Alberto

Postnext
Kurt WaldSubject: graphical representation for variables
Author: Kurt Wald
Date: 26 Mar 2007 03:10 PM
Hi Alberto,

1. I am talking about the XSLT mapper
2. I am talking about pull processing with a single template match="/"
3. I am talking about global as well as local variables with any scope

So graphically it appears to me to be the main problem, where to place the variable to get the desired scope/location for it's definition and how to link it to loop and other constructs. For the simple definition and placement (without loop linkage) see attached jpg.


Unknownvar.jpg

Posttop
(Deleted User) Subject: graphical representation for variables
Author: (Deleted User)
Date: 27 Mar 2007 08:48 AM
Hi Kurt,
thank you for your suggestions; I think we can implement something along these lines, even if I am not too fond of the 'myVariable' node in the target tree (after all, a variable is not always placed in the output, but it's used to help other instructions).
I'll add this request to the "wish list" for the next major release of Stylus.

Thanks,
Alberto

 
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.