|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: sum up float values problem
I do not understand it: When I copy this code into my stylesheet the processor wants to import a stylesheet "transform-and-sum.xsl" but where is this file??? The explanation is very poor... Do you have more tips? <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:func-transform="f:func-transform" exclude-result-prefixes="xsl func-transform" > <xsl:import href="transform-and-sum.xsl"/> <xsl:output method="text"/> <func-transform:func-transform/> <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> </xsl:stylesheet> > --- Urspr|ngliche Nachricht --- > Von: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: Re: sum up float values problem > Datum: Thu, 27 Apr 2006 12:04:33 -0700 > > > > sum(/*/*/xs:double(translate(.,',','.'))) > > > > In XSLT 1.0? > > In XSLT 1.0 I'd use the transform-and-sum template/function of FXSL 1.x > > Search for "transform-and-sum" to get some examples of its usage. > > > > -- > Cheers, > Dimitre Novatchev > --------------------------------------- > Truly great madness cannot be achieved without significant intelligence. > > > On 4/27/06, Florent Georges <darkman_spam@xxxxxxxx> wrote: > > Dimitre Novatchev wrote: > > > > > Exactly as explained by Dr. Kay: > > > > > sum(/*/*/xs:double(translate(.,',','.'))) > > > > In XSLT 1.0? > > > > 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 > -- GMX Produkte empfehlen und ganz einfach Geld verdienen! Satte Provisionen f|r GMX Partner: http://www.gmx.net/de/go/partner
|
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
|







