Change test si-for-each-005 to reflect whitespace rules on TVTs
authorMichael Kay <mike@saxonica.com>
Thu, 09 Jul 2015 11:21:30 +0100
changeset 1013 3a7b004c99d4
parent 1012 6ba26e572cb6
child 1014 54c229310974
Change test si-for-each-005 to reflect whitespace rules on TVTs
tests/strm/si-for-each/_si-for-each-test-set.xml
tests/strm/si-for-each/si-for-each-A.xsl
--- a/tests/strm/si-for-each/_si-for-each-test-set.xml	Thu Jul 09 11:20:33 2015 +0100
+++ b/tests/strm/si-for-each/_si-for-each-test-set.xml	Thu Jul 09 11:21:30 2015 +0100
@@ -75,12 +75,13 @@
    <test-case name="si-for-each-005">
       <description>Crawling selection, inspection body</description>
       <created by="Michael Kay" on="2013-12-04"/>
+      <modified by="Michael Kay" on="2015-07-08" change="Correct expected whitespace"/>
       <environment ref="si-for-each-A"/>
       <test>
          <initial-template name="fe-005"/>
       </test>
       <result>
-         <assert>/out = "1:BOOKLIST 2:BOOKS 3:ITEM 4:TITLE 5:AUTHOR 6:PUBLISHER"</assert>
+         <assert>/out = "1:BOOKLIST 2:BOOKS 3:ITEM 4:TITLE 5:AUTHOR 6:PUBLISHER "</assert>
       </result>   
    </test-case>
    
--- a/tests/strm/si-for-each/si-for-each-A.xsl	Thu Jul 09 11:20:33 2015 +0100
+++ b/tests/strm/si-for-each/si-for-each-A.xsl	Thu Jul 09 11:21:30 2015 +0100
@@ -66,7 +66,7 @@
   <xsl:template name="fe-005" expand-text="yes">
     <out>
       <xsl:stream href="../docs/books.xml">
-        <xsl:for-each select="(//*)[position()=1 to 6]">{position()}:{name()}</xsl:for-each>
+        <xsl:for-each select="(//*)[position()=1 to 6]">{position()}:{name()} </xsl:for-each>
       </xsl:stream>
     </out>
   </xsl:template>