dmarston 2003/03/05 12:20:55 Modified: test/tests/conf/string string62.xsl string48.xsl string49.xsl string61.xsl Added: test/tests/conf/string string142.xsl string143.xml string143.xsl string142.xml Log: Add errata pointers and fix comments on existing tests, add new tests for better coverage, on XPath 4.2 errata. Revision Changes Path 1.2 +10 -6 xml-xalan/test/tests/conf/string/string62.xsl Index: string62.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/string/string62.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- string62.xsl 15 Dec 2000 21:52:11 -0000 1.1 +++ string62.xsl 5 Mar 2003 20:20:54 -0000 1.2 @@ -1,16 +1,20 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <!-- FileName: str62 --> + <!-- FileName: string62 --> <!-- Document: http://www.w3.org/TR/xpath --> - <!-- DocVersion: 19990922 --> + <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> - <!-- Purpose: Test of 'contains()' function. --> + <!-- AdditionalSpec: http://www.w3.org/1999/11/REC-xpath-19991116-errata/ --> + <!-- ErrataAdd: 20011101 --> + <!-- Purpose: If the second argument to contains is the empty string, then true is returned. --> + +<xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> - <out> - <xsl:value-of select="contains('','')"/> - </out> + <out> + <xsl:value-of select="contains('','')"/> + </out> </xsl:template> </xsl:stylesheet> 1.2 +10 -6 xml-xalan/test/tests/conf/string/string48.xsl Index: string48.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/string/string48.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- string48.xsl 15 Dec 2000 21:52:08 -0000 1.1 +++ string48.xsl 5 Mar 2003 20:20:55 -0000 1.2 @@ -1,16 +1,20 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <!-- FileName: str48 --> + <!-- FileName: string48 --> <!-- Document: http://www.w3.org/TR/xpath --> - <!-- DocVersion: 19990922 --> + <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> - <!-- Purpose: Test of 'starts-with()' function. --> + <!-- AdditionalSpec: http://www.w3.org/1999/11/REC-xpath-19991116-errata/ --> + <!-- ErrataAdd: 20011101 --> + <!-- Purpose: If the second argument to starts-with is the empty string, then true is returned. --> + +<xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> - <out> - <xsl:value-of select="starts-with('abc', '')"/> - </out> + <out> + <xsl:value-of select="starts-with('abc','')"/> + </out> </xsl:template> </xsl:stylesheet> 1.2 +8 -6 xml-xalan/test/tests/conf/string/string49.xsl Index: string49.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/string/string49.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- string49.xsl 15 Dec 2000 21:52:08 -0000 1.1 +++ string49.xsl 5 Mar 2003 20:20:55 -0000 1.2 @@ -1,16 +1,18 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <!-- FileName: str49 --> + <!-- FileName: string49 --> <!-- Document: http://www.w3.org/TR/xpath --> - <!-- DocVersion: 19990922 --> + <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> - <!-- Purpose: Test of 'starts-with()' function. --> + <!-- Purpose: If the second argument to starts-with is the empty string, then true is returned. --> + +<xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> - <out> - <xsl:value-of select="starts-with('','')"/> - </out> + <out> + <xsl:value-of select="starts-with('','')"/> + </out> </xsl:template> </xsl:stylesheet> 1.2 +10 -6 xml-xalan/test/tests/conf/string/string61.xsl Index: string61.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/string/string61.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- string61.xsl 15 Dec 2000 21:52:10 -0000 1.1 +++ string61.xsl 5 Mar 2003 20:20:55 -0000 1.2 @@ -1,16 +1,20 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <!-- FileName: str61 --> + <!-- FileName: string61 --> <!-- Document: http://www.w3.org/TR/xpath --> - <!-- DocVersion: 19990922 --> + <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> - <!-- Purpose: Test of 'contains()' function. --> + <!-- AdditionalSpec: http://www.w3.org/1999/11/REC-xpath-19991116-errata/ --> + <!-- ErrataAdd: 20011101 --> + <!-- Purpose: If the second argument to contains is the empty string, then true is returned. --> + +<xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> - <out> - <xsl:value-of select="contains('abc', '')"/> - </out> + <out> + <xsl:value-of select="contains('abc','')"/> + </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/string/string142.xsl Index: string142.xsl =================================================================== <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: string142 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> <!-- AdditionalSpec: http://www.w3.org/1999/11/REC-xpath-19991116-errata/ --> <!-- ErrataAdd: 20011101 --> <!-- Creator: David Marston --> <!-- Purpose: If the second argument to substring-before is the empty string, then the empty string is returned. --> <xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> <out> <xsl:value-of select="string-length(substring-before('abcde',''))"/> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/string/string143.xml Index: string143.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <doc/> 1.1 xml-xalan/test/tests/conf/string/string143.xsl Index: string143.xsl =================================================================== <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: string143 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.2 String Functions --> <!-- AdditionalSpec: http://www.w3.org/1999/11/REC-xpath-19991116-errata/ --> <!-- ErrataAdd: 20011101 --> <!-- Creator: David Marston --> <!-- Purpose: If the second argument to substring-after is the empty string, then the first argument string is returned. --> <xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="doc"> <out> <xsl:value-of select="substring-after('ABCDE','')"/> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/string/string142.xml Index: string142.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <doc/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]