dmarston 00/12/17 13:30:08
Added: test/tests/conf/numberformat periodgroup.xsl
numberformat01.xml numberformat01.xsl
numberformat02.xml numberformat02.xsl
numberformat03.xml numberformat03.xsl
numberformat04.xml numberformat04.xsl
numberformat05.xml numberformat05.xsl
numberformat06.xml numberformat06.xsl
numberformat07.xml numberformat07.xsl
numberformat08.xml numberformat08.xsl
numberformat09.xml numberformat09.xsl
numberformat11.xml numberformat11.xsl
numberformat12.xml numberformat12.xsl
numberformat13.xml numberformat13.xsl
numberformat14.xml numberformat14.xsl
numberformat15.xml numberformat15.xsl
numberformat16.xml numberformat16.xsl
numberformat17.xml numberformat17.xsl
numberformat18.xml numberformat18.xsl
numberformat19.xml numberformat19.xsl
numberformat20.xml numberformat20.xsl
numberformat21.xml numberformat21.xsl
numberformat22.xml numberformat22.xsl
numberformat23.xml numberformat23.xsl
numberformat24.xml numberformat24.xsl
numberformat25.xml numberformat25.xsl
numberformat26.xml numberformat26.xsl
numberformat27.xml numberformat27.xsl
numberformat28.xml numberformat28.xsl
numberformat29.xml numberformat29.xsl
numberformat30.xml numberformat30.xsl
numberformat31.xml numberformat31.xsl
numberformat32.xml numberformat32.xsl
numberformat34.xml numberformat34.xsl
numberformat35.xml numberformat35.xsl
numberformat36.xml numberformat36.xsl
numberformat37.xml numberformat37.xsl
numberformat38.xml numberformat38.xsl
numberformat39.xml numberformat39.xsl
numberformat40.xml numberformat40.xsl newminus.xsl
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/numberformat/periodgroup.xsl
Index: periodgroup.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- This stylesheet is to be imported or included. It defines the
'periodgroup' format. -->
<xsl:decimal-format name="periodgroup" decimal-separator=','
grouping-separator='.'/>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat01.xml
Index: numberformat01.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat01.xsl
Index: numberformat01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT01 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number with 2 arguments, showing zeroes. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(2392.14*36.58,'000,000.000000')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat02.xml
Index: numberformat02.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat02.xsl
Index: numberformat02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT02 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number and # and 0 in format string. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(12792.14*96.58,'##,###,000.000###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat03.xml
Index: numberformat03.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat03.xsl
Index: numberformat03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT03 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number on a negative number. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(2792.14*(-36.58),'000,000.000###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat04.xml
Index: numberformat04.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat04.xsl
Index: numberformat04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT04 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number on a negative number; should choose
second pattern. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(2392.14*(-36.58),'000,000.000###;###,###.000###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat05.xml
Index: numberformat05.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat05.xsl
Index: numberformat05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT05 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number percentage format. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(0.4857,'###.###%')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat06.xml
Index: numberformat06.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat06.xsl
Index: numberformat06.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT06 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number per-mille format. -->
<xsl:output method="xml" encoding="ISO-8859-1"/>
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(0.4857,'###.###‰')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat07.xml
Index: numberformat07.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat07.xsl
Index: numberformat07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT07 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number currency symbol, which is not supposed
to be there. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(95.4857,'¤###.####')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat08.xml
Index: numberformat08.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat08.xsl
Index: numberformat08.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT08 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number with prefix and suffix in format
string. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(2.14*86.58,'PREFIX##00.000###SUFFIX')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat09.xml
Index: numberformat09.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat09.xsl
Index: numberformat09.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT09 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test default decimal-format on separator characters, changing
both. -->
<xsl:decimal-format decimal-separator="|" grouping-separator="." />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(931.4857,'000.000|###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat11.xml
Index: numberformat11.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat11.xsl
Index: numberformat11.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT11 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test default decimal-format on pattern-only characters,
positive number. -->
<xsl:decimal-format digit="!" pattern-separator="\" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(26931.4,'+!!!,!!!.!!!\-!!,!!!.!!!')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat12.xml
Index: numberformat12.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat12.xsl
Index: numberformat12.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT12 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test default decimal-format on pattern-only characters,
negative number. -->
<xsl:decimal-format digit="!" pattern-separator="\" />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'+!!,!!!.!!!\-!!!,!!!.!!!')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat13.xml
Index: numberformat13.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat13.xsl
Index: numberformat13.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT13 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test default decimal-format on pattern-only characters,
negative number and one pattern. -->
<xsl:decimal-format digit="!" pattern-separator="\" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-26931.4,'!!!,!!!.!!!')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat14.xml
Index: numberformat14.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat14.xsl
Index: numberformat14.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat14 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test specified result pattern for infinity. -->
<xsl:decimal-format infinity="off-the-scale" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(1 div
0,'###############################')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat15.xml
Index: numberformat15.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat15.xsl
Index: numberformat15.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat15 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test specified result pattern for not-a-number. -->
<xsl:decimal-format NaN="non-numeric" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number('foo','#############')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat16.xml
Index: numberformat16.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat16.xsl
Index: numberformat16.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT16 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of decimal-format per-mille format with character being
changed. -->
<xsl:decimal-format per-mille="m" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(0.4857,'###.###m')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat17.xml
Index: numberformat17.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat17.xsl
Index: numberformat17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT17 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test decimal-format output character for negative, 2
patterns. -->
<xsl:decimal-format minus-sign="_" />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'+###,###.###;-###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat18.xml
Index: numberformat18.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat18.xsl
Index: numberformat18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT18 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test decimal-format output character for negative, one
pattern. -->
<xsl:decimal-format minus-sign="_" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-26931.4,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat19.xml
Index: numberformat19.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat19.xsl
Index: numberformat19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT19 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test decimal-format declaration with a name. -->
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-26931.4,'###,###.###','myminus')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-42857.1,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat20.xml
Index: numberformat20.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat20.xsl
Index: numberformat20.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:foo="http://foo.com">
<!-- FileName: NUMBERFORMAT20 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of decimal-format with qualified name. Unqualified name
provided as a trap. -->
<xsl:decimal-format name="foo:decimal1" decimal-separator='!'
grouping-separator='*'/>
<xsl:decimal-format name="decimal1" decimal-separator='*'
grouping-separator='!'/>
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(1234.567,'#*###*###!###','foo:decimal1')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat21.xml
Index: numberformat21.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat21.xsl
Index: numberformat21.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT21 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test include of a decimal-format. -->
<xsl:include href="file:periodgroup.xsl"/>
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'###.###,###','periodgroup')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-42857.1,'###,###.###','myminus')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-73816.9,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat22.xml
Index: numberformat22.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat22.xsl
Index: numberformat22.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT22 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test import of a decimal-format. Three formats should not
conflict. -->
<xsl:import href="file:periodgroup.xsl"/>
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'###.###,###','periodgroup')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-42857.1,'###,###.###','myminus')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-73816.9,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat23.xml
Index: numberformat23.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat23.xsl
Index: numberformat23.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT23 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of include that does an import, providing two named
decimal-formats. Three formats should not conflict. -->
<xsl:include href="file:newminus.xsl"/>
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'###.###,###','periodgroup')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-42857.1,'###,###.###','newminus')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-73816.9,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat24.xml
Index: numberformat24.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat24.xsl
Index: numberformat24.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT24 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of import that does an import, providing two named
decimal-formats. Three formats should not conflict. -->
<xsl:import href="file:newminus.xsl"/>
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'###.###,###','periodgroup')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-42857.1,'###,###.###','newminus')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(-73816.9,'###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat25.xml
Index: numberformat25.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat25.xsl
Index: numberformat25.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT25 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Create a conflict in the use of the '.' character. -->
<xsl:decimal-format decimal-separator="!" grouping-separator="!" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(931.4857,'###!###!###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat26.xml
Index: numberformat26.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat26.xsl
Index: numberformat26.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT26 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Designate a space as the grouping separator. -->
<xsl:decimal-format decimal-separator="," grouping-separator=" " />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(7654321.4857,'### ### ###,#####')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat27.xml
Index: numberformat27.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat27.xsl
Index: numberformat27.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT27 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number minus-sign behavior on positive
numbers. -->
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:template match="doc">
<out>All three should be the same...<xsl:text>
</xsl:text><xsl:value-of
select="format-number(2392.14*36.58,'000,000.000000','myminus')"/><xsl:text>
</xsl:text><xsl:value-of
select="format-number(2392.14*36.58,'000,000.000000;###,###.000###')"/><xsl:text>
</xsl:text><xsl:value-of
select="format-number(2392.14*36.58,'000,000.000000;###,###.000###','myminus')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat28.xml
Index: numberformat28.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat28.xsl
Index: numberformat28.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT28 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test what happens to minus sign embedded in second pattern.
-->
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(2392.14*(-36.58),'000,000.000###;-###,###.000###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat29.xml
Index: numberformat29.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat29.xsl
Index: numberformat29.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT29 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test decimal-format output character does not influence
input. -->
<xsl:decimal-format minus-sign="_" />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(-26931.4,'+###,###.###;_###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat30.xml
Index: numberformat30.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat30.xsl
Index: numberformat30.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT30 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test effects of minus-sign in one pattern. -->
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:template match="doc">
<out>All three should have two prefixes...<xsl:text>
</xsl:text><xsl:value-of
select="format-number(-26931.4,'-###,###.###')"/><xsl:text>
</xsl:text><xsl:value-of
select="format-number(-26931.4,'-###,###.###','myminus')"/><xsl:text>
</xsl:text><xsl:value-of
select="format-number(-26931.4,'_###,###.###','myminus')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat31.xml
Index: numberformat31.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat31.xsl
Index: numberformat31.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT31 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test output of altered minus, 2 patterns but no sign marker
in pattern. -->
<xsl:decimal-format minus-sign="_" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-26931.4,'###,###.###;###,###.###')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat32.xml
Index: numberformat32.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat32.xsl
Index: numberformat32.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT32 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of format-number percent format with character being
changed. -->
<xsl:decimal-format percent="c" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(0.4857,'###.###c')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat34.xml
Index: numberformat34.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat34.xsl
Index: numberformat34.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT34 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test changing both digit and zero-digit in format string. -->
<xsl:decimal-format digit="!" zero-digit="a" />
<xsl:template match="doc">
<out>
<xsl:value-of
select="format-number(4030201.0506,'#!!!,!!!,aaa.aaaaaa0')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat35.xml
Index: numberformat35.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat35.xsl
Index: numberformat35.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT35 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of unequal spacing of grouping-separator. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(987654321,'###,##0,00.00')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat36.xml
Index: numberformat36.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat36.xsl
Index: numberformat36.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NUMBERFORMAT36 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test what happens when we overflow available digits on the
left. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(239236.588,'00000.00')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat37.xml
Index: numberformat37.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat37.xsl
Index: numberformat37.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat37 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test result pattern for infinity, unchanged. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(1 div
0,'###############################')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat38.xml
Index: numberformat38.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat38.xsl
Index: numberformat38.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat38 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test result pattern for not-a-number, unchanged. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number('foo','#############')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat39.xml
Index: numberformat39.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat39.xsl
Index: numberformat39.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat39 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test result pattern for negative infinity, unchanged. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-1 div
0,'###############################')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat40.xml
Index: numberformat40.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/numberformat/numberformat40.xsl
Index: numberformat40.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NumberFormat40 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test specification of result pattern for infinity
when quantity to be displayed is negative infinity. -->
<xsl:decimal-format infinity="huge" />
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(-1 div
0,'###############################')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numberformat/newminus.xsl
Index: newminus.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- This stylesheet is to be imported or included. It defines the 'newminus'
format. -->
<xsl:import href="file:periodgroup.xsl"/>
<xsl:decimal-format name="newminus" minus-sign='_' />
</xsl:stylesheet>