Make output well-formed XML
authorMichael Kay <mike@saxonica.com>
Tue, 08 Aug 2017 17:52:14 +0100
changeset 1733 09ec9af1b442
parent 1732 b799292c156f
child 1734 204d3d3291fd
Make output well-formed XML
tests/attr/match/_match-test-set.xml
tests/attr/match/match-241.xsl
--- a/tests/attr/match/_match-test-set.xml	Tue Aug 08 17:50:43 2017 +0100
+++ b/tests/attr/match/_match-test-set.xml	Tue Aug 08 17:52:14 2017 +0100
@@ -4484,7 +4484,7 @@
          <stylesheet file="match-241.xsl"/>
       </test>
       <result>
-         <assert-xml>1^2 = 1 = 1*1, 2^2 = 4 = 2*2, 3^2 = 9 = 3*3, 5^2 = 25 = 5*5, 7^2 = 49 = 7*7, 13^2 = 169 = 13*13, 17^2 = 289 = 17*17, 19^2 = 361 = 19*19</assert-xml>
+         <assert>/out = "1^2 = 1 = 1*1, 2^2 = 4 = 2*2, 3^2 = 9 = 3*3, 5^2 = 25 = 5*5, 7^2 = 49 = 7*7, 13^2 = 169 = 13*13, 17^2 = 289 = 17*17, 19^2 = 361 = 19*19"</assert>
       </result>
    </test-case>
    
--- a/tests/attr/match/match-241.xsl	Tue Aug 08 17:50:43 2017 +0100
+++ b/tests/attr/match/match-241.xsl	Tue Aug 08 17:52:14 2017 +0100
@@ -13,7 +13,7 @@
     <xsl:mode warning-on-multiple-match="no"/>
     
     <xsl:template name="xsl:initial-template">
-        <xsl:apply-templates select="1, 2, 3, 5, 7, 13, 17, 19" />
+        <out><xsl:apply-templates select="1, 2, 3, 5, 7, 13, 17, 19" /></out>
     </xsl:template>
 
     <xsl:template match=".[. instance of xs:integer]">