|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: sum up float values problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







