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

Re: sum up float values problem

Subject: Re: sum up float values problem
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Fri, 28 Apr 2006 10:22:12 +0200 (CEST)
sum two floats
Markus Gamperl wrote:

> When I copy this code into my stylesheet the processor
> wants to import a stylesheet "transform-and-sum.xsl"
> but where is this file???

  It is intended ;-).  Check <URL:http://fxsl.sf.net/>.

> The explanation is very poor... Do you have more tips?

  I suggest you to have a look at the documents on the above
site.  One or two words: the template 'transform-and-sum'
sums the nodes in its 'pList' nodeset parameter, after
applied them a transformation, identified with its
'pFuncTransform' parameter:

    <xsl:template match="/">
      <xsl:call-template name="transform-and-sum">
        <xsl:with-param name="pFuncTransform" 
                        select="document('')/*/func-transform:*[1]"/>
        <xsl:with-param name="pList" select="/*/*"/>
      </xsl:call-template>
    </xsl:template>
    
    <xsl:template match="func-transform:*">
      <xsl:param name="arg" select="0"/>
      <xsl:value-of select="translate($arg, ',', '')"/>
    </xsl:template>

  This last parameter transformation identifies a template
(the above one), that does the needed transformation.  It is
the way FXSL introduces "user-defined functions", while XSLT
doesn't has first-class functions.  For details, see the
FXSL documentation.

  Regards,

--drkm























	

	
		
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services prifiris : virifiez vos nouveaux mails, lancez vos recherches et suivez l'actualiti en temps riel. 
Rendez-vous sur http://fr.yahoo.com/set

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.