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
Alexandre TakacsSubject: [Newbie] Type conversion and formating
Author: Alexandre Takacs
Date: 25 Jan 2009 04:03 PM
Hello

Still pretty new to XSLT / Stylus Studio - I expect your indulgence :)

I am working with the XML Report feature and overall I have managed to work most things out...

I however have (probably obvious) problem where I have to map one input field into an INTEGER value, format it like "#'###" and if the value doesn't map return a custom error string... How would I do this ?!

Any pointer / help much appreciated

Regards

alex

Posttop
Alberto MassariSubject: [Newbie] Type conversion and formating
Author: Alberto Massari
Date: 27 Feb 2009 12:54 PM
Hi Alexandre,
you can enter a format-number(path, "#'###") expression, and then associate your custom error value to the NaN property of the Decimal Format tab in the properties for the whole report (available in the latest Stylus 2009 release).

Hope this helps,
Alberto

 
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.