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
peter paganoSubject: xslt mapper looses linkage from source when using math
Author: peter pagano
Date: 04 Nov 2011 06:12 AM
Using xslt mapper, simple value-of drag and drop from source xsd element to target xsd element. Then, following instructions in the documentation, type in any math, like "div 2.0" to divide by two directly in the xpath. Math works on transformation, value is divided by two, but the graphical mapping from source is lost in the diagram. How can we do math transforms and maintain the graphical link to source xsd element?

Posttop
Ivan PedruzziSubject: xslt mapper looses linkage from source when using math
Author: Ivan Pedruzzi
Date: 04 Nov 2011 03:50 PM
Hi Peter,

Mathematical operators are not directly supported, one alternative approach is creating a simple template library that can be imported then invoked from the mapping UI, have a look at the attached project

Hope this helps
Ivan Pedruzzi
Stylus Studio Team


DocumentTemplateFunctionImportExample.zip

 
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.