this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

Re: [xsl] problem with scientific notation and leading whitespaces

2013-07-18 09:02:19
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

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: |
Crane Softwrights Ltd.   |
G. Ken Holman                   mailto:gkholman(_at_)CraneSoftwrights(_dot_)com 
Google+ profile: |
Legal business disclaimers: |

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>

<Prev in Thread] Current Thread [Next in Thread>