You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/02/15 22:30:41 UTC
cvs commit: xml-xalan/test/tests/conf/numberformat/err numberformaterr03.xsl numberformaterr04.xsl numberformaterr06.xsl numberformaterr07.xsl numberformaterr08.xsl numberformaterr09.xsl numberformaterr10.xsl numberformaterr18.xsl numberformaterr19.xsl numberformaterr20.xsl numberformaterr21.xsl numberformaterr22.xsl numberformaterr23.xsl numberformaterr24.xsl numberformaterr25.xsl numberformaterr26.xsl numberformaterr27.xsl numberformaterr30.xsl
curcuru 01/02/15 13:30:39
Modified: test/tests/conf/namespace/err namespaceerr01.xsl
namespaceerr05.xsl namespaceerr06.xsl
namespaceerr10.xsl
test/tests/conf/numberformat/err numberformaterr03.xsl
numberformaterr04.xsl numberformaterr06.xsl
numberformaterr07.xsl numberformaterr08.xsl
numberformaterr09.xsl numberformaterr10.xsl
numberformaterr18.xsl numberformaterr19.xsl
numberformaterr20.xsl numberformaterr21.xsl
numberformaterr22.xsl numberformaterr23.xsl
numberformaterr24.xsl numberformaterr25.xsl
numberformaterr26.xsl numberformaterr27.xsl
numberformaterr30.xsl
Log:
More: Update various ExpectedException strings for Xalan-J 2.x (ongoing)
Revision Changes Path
1.3 +1 -0 xml-xalan/test/tests/conf/namespace/err/namespaceerr01.xsl
Index: namespaceerr01.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/err/namespaceerr01.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- namespaceerr01.xsl 2000/12/29 19:53:50 1.2
+++ namespaceerr01.xsl 2001/02/15 21:29:30 1.3
@@ -9,6 +9,7 @@
<!-- Purpose: It is an error for an element from XSLT namespace to have attributes
with expanded-names that have null namespace URI's. -->
<!-- ExpectedException: XSL Error: xsl:copy-of has an illegal attribute: -->
+ <!-- ExpectedException: "test" attribute is not allowed on the xsl:copy-of element! -->
<xsl:template match="doc">
<out>
1.3 +1 -0 xml-xalan/test/tests/conf/namespace/err/namespaceerr05.xsl
Index: namespaceerr05.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/err/namespaceerr05.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- namespaceerr05.xsl 2000/12/29 19:53:50 1.2
+++ namespaceerr05.xsl 2001/02/15 21:29:33 1.3
@@ -10,6 +10,7 @@
<!-- Purpose: Test placement of namespace-alias inside a template, which is illegal. -->
<!-- ExpectedException: Must put xsl:namespace-alias outside any template. -->
<!-- ExpectedException: org.apache.xalan.xslt.XSLProcessorException: Must put xsl:namespace-alias outside any template. -->
+ <!-- ExpectedException: xsl:namespace-alias is not allowed in this position in the stylesheet! -->
<xsl:template match="/">
<out>
1.3 +1 -0 xml-xalan/test/tests/conf/namespace/err/namespaceerr06.xsl
Index: namespaceerr06.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/err/namespaceerr06.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- namespaceerr06.xsl 2000/12/29 19:53:50 1.2
+++ namespaceerr06.xsl 2001/02/15 21:29:34 1.3
@@ -10,6 +10,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of 'local-name()' with too many arguments. -->
<!-- ExpectedException: local-name() has too many arguments. -->
+ <!-- ExpectedException: FuncLocalPart only allows 1 arguments -->
<xsl:template match="baz2:doc">
<out>
1.3 +1 -0 xml-xalan/test/tests/conf/namespace/err/namespaceerr10.xsl
Index: namespaceerr10.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/err/namespaceerr10.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- namespaceerr10.xsl 2000/12/29 19:53:50 1.2
+++ namespaceerr10.xsl 2001/02/15 21:29:36 1.3
@@ -10,6 +10,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test for meaningful message when attempting to use namespace wildcard (*) -->
<!-- ExpectedException: XSLT: ElemTemplateElement error: Can not resolve namespace prefix: -->
+ <!-- ExpectedException: Prefix must resolve to a namespace: -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr03.xsl
Index: numberformaterr03.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr03.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr03.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr03.xsl 2001/02/15 21:29:48 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Attempt to put a child on decimal-format. -->
<!-- ExpectedException: xsl:text not allowed inside xsl:decimal-format -->
+ <!-- ExpectedException: xsl:text is not allowed in this position in the stylesheet! -->
<xsl:decimal-format NaN="non-numeric">
<xsl:text>This should not appear!</xsl:text>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr04.xsl
Index: numberformaterr04.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr04.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr04.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr04.xsl 2001/02/15 21:29:49 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test illegal attribute on decimal-format. -->
<!-- ExpectedException: Invalid attribute on xsl:decimal-format. -->
+ <!-- ExpectedException: "badattr" attribute is not allowed on the xsl:decimal-format element! -->
<xsl:decimal-format NaN="non-numeric" badattr="bad" />
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr06.xsl
Index: numberformaterr06.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr06.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr06.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr06.xsl 2001/02/15 21:29:51 1.2
@@ -9,6 +9,7 @@
<!-- Purpose: Show what happens if there are any filler digits (#) between
zero-digits and the decimal-separator on the left. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: 00,000,###.000### -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr07.xsl
Index: numberformaterr07.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr07.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr07.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr07.xsl 2001/02/15 21:29:52 1.2
@@ -9,6 +9,7 @@
<!-- Purpose: Show what happens if there are any filler digits (#) between
zero-digits and the decimal-separator on the right. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ##,000,000.###000 -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr08.xsl
Index: numberformaterr08.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr08.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr08.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr08.xsl 2001/02/15 21:29:53 1.2
@@ -9,6 +9,7 @@
<!-- Purpose: Show what happens if there are any filler digits (#) between
zero-digits and the decimal-separator. Change both characters. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: #aa,aaa,!!!.!!!aaa0 -->
<xsl:decimal-format digit="!" zero-digit="a" />
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr09.xsl
Index: numberformaterr09.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr09.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr09.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr09.xsl 2001/02/15 21:29:55 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of two occurrences of the decimal-separator. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ##,000.000.0000 -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr10.xsl
Index: numberformaterr10.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr10.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr10.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr10.xsl 2001/02/15 21:29:56 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of grouping-separator after the decimal-separator. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: 0.000,###,###,### -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr18.xsl
Index: numberformaterr18.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr18.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr18.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr18.xsl 2001/02/15 21:29:57 1.2
@@ -9,6 +9,7 @@
<!-- Purpose: Show what happens if there are any literal characters between
two groups of filler digits (#). -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######zip###### -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr19.xsl
Index: numberformaterr19.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr19.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr19.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr19.xsl 2001/02/15 21:29:58 1.2
@@ -9,6 +9,7 @@
<!-- Purpose: Show what happens if there are any literal characters between
two groups of zero digits. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: 000000zip000000 -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr20.xsl
Index: numberformaterr20.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr20.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr20.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr20.xsl 2001/02/15 21:30:00 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Put grouping separator adjacent to decimal-separator. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######,.00 -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr21.xsl
Index: numberformaterr21.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr21.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr21.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr21.xsl 2001/02/15 21:30:02 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Put grouping separator adjacent to percent. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######,% -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr22.xsl
Index: numberformaterr22.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr22.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr22.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr22.xsl 2001/02/15 21:30:03 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Put grouping separator adjacent to per-mille character. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######, -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr23.xsl
Index: numberformaterr23.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr23.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr23.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr23.xsl 2001/02/15 21:30:04 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Put grouping separator adjacent to pattern-separator. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######,;000,000 -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr24.xsl
Index: numberformaterr24.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr24.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr24.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr24.xsl 2001/02/15 21:30:06 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of percent in middle of format string. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ###%###.## -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr25.xsl
Index: numberformaterr25.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr25.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr25.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr25.xsl 2001/02/15 21:30:08 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of per-mille in middle of format string. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ###‰###.## --><!-- Note comparison may not work with entity value here -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr26.xsl
Index: numberformaterr26.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr26.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr26.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr26.xsl 2001/02/15 21:30:10 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of more than two patterns. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: +##,###.000;-##,###.###;x##,###.### -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr27.xsl
Index: numberformaterr27.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr27.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr27.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr27.xsl 2001/02/15 21:30:11 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test of both percent and per-mille in format string. -->
<!-- ExpectedException: java.lang.RuntimeException: Malformed format string -->
+ <!-- ExpectedException: Malformed format string: ######.##% -->
<xsl:template match="doc">
<out>
1.2 +1 -0 xml-xalan/test/tests/conf/numberformat/err/numberformaterr30.xsl
Index: numberformaterr30.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/numberformat/err/numberformaterr30.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- numberformaterr30.xsl 2000/12/17 21:31:00 1.1
+++ numberformaterr30.xsl 2001/02/15 21:30:12 1.2
@@ -8,6 +8,7 @@
<!-- Creator: David Marston -->
<!-- Purpose: Test placement of decimal-format inside atemplate, which is illegal. -->
<!-- ExpectedException: Must put xsl:decimal-format outside any template. -->
+ <!-- ExpectedException: xsl:decimal-format is not allowed in this position in the stylesheet! -->
<xsl:template match="doc">
<out>