- Updated comment in separate-thousands function.
1 parent 418bdc3 commit 8691ac049a466452ad2af165c086ca1a0b4d8867
nstanger authored on 19 Jul 2011
Showing 1 changed file
View
6
format-master.xml
</xsl:choose>
<xsl:variable name="digit-separator">
<xsl:text disable-output-escaping="yes">&amp;thinsp;</xsl:text>
</xsl:variable>
<!-- Recursively subdivide the sequence. Terminate when sequence length <= 3. -->
<!--
Recursively subdivide the sequence. Terminate when sequence length <= 3. Note that we have to use the numeric entity for thin space rather than the character entity &thinsp; because of the weird way XSLT handles character entities. Using the character entity, the HTML visibly displays as "&thinsp;".
-->
<xsl:sequence select="
if ( string-length( $unseparated-value ) > 3 )
then concat(
if ( lower-case( $mode ) = 'r' )