Hi Dave,
In the stylesheets, the code that generates the number labels is in common/labels.xsl,
using mode="label.markup". See, for example, the template:
<xsl:template match="chapter" mode="label.markup">
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net