Subject: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.
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?
Subject: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.
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.