xsl-list
[Top] [All Lists]

Re: [xsl] XPath MOD 10 calculation

2007-05-25 07:55:44
On 5/25/07, Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote:
Andrew Welch wrote:
> to give you the check-digit?  If so it makes the outermost "mod 10" of
> $calc redundant?  (if it is then step #4 on the wikipedia article isnt
> needed)

It is needed for calculating the check digit, in the special case that
the steps 1..3 produce 10 (which is, if the $totalsums mod 10 equal 0).
10 is not allowed as digit. Doing modulo 10, will give 0.

Ahh - thanks for the clarification.

--~------------------------------------------------------------------
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>
--~--