ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
Re: [exslt] Need help on using Math Functions
by James Fuller other posts by this author
May 21 2007 7:11AM messages near this date
Re: [exslt] Need help on using Math Functions | [exslt] Path error in date/functions/format-date/date.format-date.function.xsl
& XSLT Flo

On 5/21/07, Florent Georges <darkman_spam@[...].fr>  wrote:
>  "Ngo, Cathy T CIV NSWCCD W. Bethesda, 2230" wrote:
> 
>    Hi
> 
>  > Thanks for helping my problem. Actually I want define
>  > variable and call math function at the stylesheet
>  > section. I got answered from Jim Fuller that resolved my
>  > problem.
> 
>  > He wrote:
>  > from the error message , it looks related to specific
>  > implementation e.g. the msxml script in that it needs a
>  > numerica arg.
> 
>  > try wrapping up your select statement with
> 
>  > select="number(catalog/cd/price[position()=1])"
> 
>    Please don't do that!  This is an example of the more easy
>  to write, difficult to track bug in XSLT 1.0.  Your XPath
>  expression select a node-set with several nodes, and you
>  silently reduce that node-set to its single first node (with
>  string() called through number()).


in the past (and we are talking distant past now in internet time)
there were some XSLT processors that needed to be nudged with number()
when doing path...I seem to have a unit test for this (as i did the
exslt math modules) somewhere.

Since u didnt tell me which implementation you were using (and I just
briefly scanned your email)  the brain cell came up with number()
function....listen to Florent as he is right in this situation.

ta, J
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Cathy T CIV NSWCCD W. Bethesda
Florent Georges
Florent Georges
James Fuller

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved