Fix whitespace problem in expected result of si-iterate-005
authorMichael Kay <mike@saxonica.com>
Wed, 12 Aug 2015 12:36:01 +0100
changeset 1033 82df2f880108
parent 1032 c4562c4c8ea0
child 1034 412d4f6bb7bf
Fix whitespace problem in expected result of si-iterate-005
tests/strm/si-iterate/_si-iterate-test-set.xml
tests/strm/si-iterate/si-iterate-A.xsl
--- a/tests/strm/si-iterate/_si-iterate-test-set.xml	Wed Aug 12 10:49:01 2015 +0100
+++ b/tests/strm/si-iterate/_si-iterate-test-set.xml	Wed Aug 12 12:36:01 2015 +0100
@@ -79,12 +79,13 @@
    <test-case name="si-iterate-005">
       <description>Crawling selection, inspection body</description>
       <created by="Michael Kay" on="2013-12-04"/>
+      <modified by="Michael Kay" on="2015-08-12" change="fixed whitespace in expected result"/>
       <environment ref="si-iterate-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-iterate/si-iterate-A.xsl	Wed Aug 12 10:49:01 2015 +0100
+++ b/tests/strm/si-iterate/si-iterate-A.xsl	Wed Aug 12 12:36:01 2015 +0100
@@ -68,7 +68,7 @@
   <xsl:template name="fe-005" expand-text="yes" use-when="$RUN">
     <out>
       <xsl:stream href="../docs/books.xml">
-        <xsl:iterate select="(//*)[position()=1 to 6]">{position()}:{name()}</xsl:iterate>
+        <xsl:iterate select="(//*)[position()=1 to 6]">{position()}:{name()} </xsl:iterate>
       </xsl:stream>
     </out>
   </xsl:template>