[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem with scientific notation and leading whit

Subject: Re: problem with scientific notation and leading whitespaces
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jul 2013 10:02:05 -0400
Re:  problem with scientific notation and leading  whit
At 2013-07-18 15:47 +0200, Silvio Abruzzo wrote:
Thank you for your prompt answer. Indeed, you solution works but I
would like to have a more general solution. The problem is that my
real xslt file has hundred of calculations and I cannot adapt all
places.

Since an XSLT file is an XML file you could consider massaging your XSLT with XSLT to introduce the function wherever needed.


As for a more "general" solution, you'd probably have to hack the processor. Nothing in XSLT 1.0 or 2.0 provides for intercepting results of <xsl:value-of/> on the fly ... even in XSLT 2.0 you would be doing something like adding a private function but having to invoke it for every calculation.

. . . . . . . Ken


-- Public XSLT, XSL-FO, and UBL classes in the Netherlands Oct 2013 | Public XSLT, XSL-FO, UBL and code list classes in Australia Oct 2013 | Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.