xsl-list
[Top] [All Lists]

Re: [xsl] XPath MOD 10 calculation

2007-05-25 02:29:20
On 5/25/07, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


> 10 - ((sum($odd) * 3) + sum($even)) mod 10

yes, or

-sum((-10,$odd,$odd,$odd,$even)) mod 10

:) I think you've just turned off Simplification Street and gone down
Obfuscation Road....

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