Re: [xsl] XPath MOD 10 calculation

Subject: Re: [xsl] XPath MOD 10 calculation
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 25 May 2007 15:55:05 +0100
On 5/25/07, Abel Braaksma <> 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.

Current Thread