Avoid unnecessary dependency on serialisation
authorMichael Kay <mike@saxonica.com>
Tue, 08 Aug 2017 17:48:11 +0100
changeset 1730 9243f955992e
parent 1729 cf7de651f4ef
child 1731 c49bbc54d5cc
Avoid unnecessary dependency on serialisation
tests/insn/for-each-group/_for-each-group-test-set.xml
tests/insn/for-each-group/for-each-group-026.xsl
--- a/tests/insn/for-each-group/_for-each-group-test-set.xml	Wed Jul 26 13:48:57 2017 +0100
+++ b/tests/insn/for-each-group/_for-each-group-test-set.xml	Tue Aug 08 17:48:11 2017 +0100
@@ -212,16 +212,17 @@
       <description>test value-based grouping with explicit use of the codepoint collation</description>
       <created by="Michael Kay" on="2012-11-07"/>
       <modified by="John Lumley" on="2014-09-04" change="Declared serialization requirement"/>
+      <modified by="Michael Kay" on="2017-08-06" change="Drop serialization requirement"/>
       <environment ref="group001"/>
       <dependencies>
          <spec value="XSLT20+"/>
       </dependencies>
       <test>
          <stylesheet file="for-each-group-007.xsl"/>
-         <output serialize="yes"/>
       </test>
       <result>
-         <assert-serialization method="html" file="group004.out"/>
+         <assert-xml><![CDATA[<html><body><h2>L (1)</h2><p>lyon</p><h2>M (2)</h2><p>milan</p><p>munich</p><h2>P (1)</h2
+            ><p>paris</p><h2>V (1)</h2><p>venice</p></body></html>]]></assert-xml>
       </result>
    </test-case>
 
@@ -369,16 +370,16 @@
       <description>use case for group-starting-with to structure DT/DD style glossary</description>
       <created by="Michael Kay" on="2012-11-07"/>
       <modified by="John Lumley" on="2014-09-04" change="Declared serialization requirement"/>
+      <modified by="Michael Kay" on="2017-08-06" change="Drop serialization requirement"/>
       <environment ref="group007"/>
       <dependencies>
          <spec value="XSLT20+"/>
       </dependencies>
       <test>
          <stylesheet file="for-each-group-020.xsl"/>
-         <output serialize="yes"/>
       </test>
       <result>
-         <assert-serialization method="html" file="group007.out"/>
+         <assert-xml><![CDATA[<html><OL><LI><B>One</B> - <I>One Def</I></LI><LI><B>Two</B> - <I>Two Def</I></LI><LI><B>Three</B> - <I>(No definition provided)</I></LI></OL></html>]]></assert-xml>
       </result>
    </test-case>
 
@@ -425,15 +426,16 @@
       <description>Use case for multilevel grouping to do a hierarchic inversion</description>
       <created by="Michael Kay" on="2012-11-07"/>
       <modified by="John Lumley" on="2014-09-04" change="Declared serialization requirement"/>
+      <modified by="Michael Kay" on="2017-08-06" change="Drop serialization requirement"/>
       <environment ref="group012"/>
       <dependencies>
          <spec value="XSLT20+"/>
       </dependencies>
       <test>
          <stylesheet file="for-each-group-026.xsl"/>
-         <output serialize="yes"/>
       </test>
       <result>
+         <assert-xml><![CDATA[<not-html><body><h2>Bug Summary (8)</h2><table><tr><th>ui (5)</th><th>core (3)</th></tr><tr><td>ace (3)<br/>gary (2)</td><td>tim (2)<br/>tom (1)</td></tr></table></body></not-html>]]></assert-xml>
          <assert-serialization method="html" file="group012.out"/>
       </result>
    </test-case>
--- a/tests/insn/for-each-group/for-each-group-026.xsl	Wed Jul 26 13:48:57 2017 +0100
+++ b/tests/insn/for-each-group/for-each-group-026.xsl	Tue Aug 08 17:48:11 2017 +0100
@@ -1,7 +1,7 @@
 <?spec xslt#grouping?>
 <!-- Use case for multilevel grouping to do a hierarchic inversion -->
 
-<html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<not-html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <body>
     <h2>
       <xsl:text>Bug Summary (</xsl:text>
@@ -40,4 +40,4 @@
       </tr>
     </table>
   </body>
-</html>
\ No newline at end of file
+</not-html>
\ No newline at end of file