Add expected results for some new tests
authorMichael Kay <mike@saxonica.com>
Fri, 10 Jul 2015 10:08:59 +0100
changeset 1018 9319bed7bead
parent 1017 69b2e75c9ba5
child 1019 b6d0aaa561e0
Add expected results for some new tests
tests/strm/sf-current/_sf-current-test-set.xml
tests/strm/sf-current/sf-current-A.xsl
--- a/tests/strm/sf-current/_sf-current-test-set.xml	Fri Jul 10 10:07:42 2015 +0100
+++ b/tests/strm/sf-current/_sf-current-test-set.xml	Fri Jul 10 10:08:59 2015 +0100
@@ -43,7 +43,10 @@
          <initial-template name="c-003"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<out>TBA</out>]]></assert-xml>
+         <assert-xml><![CDATA[<out><ITEM CAT="MMP"><TITLE>Pride and Prejudice</TITLE><AUTHOR>Jane Austen</AUTHOR
+         ><PUBLISHER>Modern Library</PUBLISHER><PUB-DATE>2002-12-31</PUB-DATE><LANGUAGE>English</LANGUAGE
+         ><PRICE>4.95</PRICE><QUANTITY>187</QUANTITY><ISBN>0679601686</ISBN><PAGES>352</PAGES
+         ><DIMENSIONS UNIT="in">8.3 5.7 1.1</DIMENSIONS><WEIGHT UNIT="oz">6.1</WEIGHT></ITEM></out>]]></assert-xml>
       </result>
    </test-case>
    
@@ -55,7 +58,7 @@
          <initial-template name="c-004"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<out>TBA</out>]]></assert-xml>
+         <assert-xml><![CDATA[<out><PRICE>4.95</PRICE></out>]]></assert-xml>
       </result>
    </test-case>
    
@@ -67,7 +70,7 @@
          <initial-template name="c-005"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<out>TBA</out>]]></assert-xml>
+         <assert-xml><![CDATA[<out><a>20 21</a><a>20 21</a><a>20 21</a><a>20 21</a><a>20 21</a><b>78</b></out>]]></assert-xml>
       </result>
    </test-case>
    
@@ -79,7 +82,7 @@
          <initial-template name="c-006"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<out>TBA</out>]]></assert-xml>
+         <assert-xml><![CDATA[<out>ITEM ITEM ITEM ITEM ITEM ITEM</out>]]></assert-xml>
       </result>
    </test-case>
 
--- a/tests/strm/sf-current/sf-current-A.xsl	Fri Jul 10 10:07:42 2015 +0100
+++ b/tests/strm/sf-current/sf-current-A.xsl	Fri Jul 10 10:08:59 2015 +0100
@@ -13,7 +13,7 @@
       <xsl:stream href="../docs/books.xml">
         <out>
           <xsl:for-each select="head(/BOOKLIST/BOOKS/ITEM)">
-            <xsl:copy-of select="*[namespace-uri(.) = namespace-uri(current())]"/>
+            <a><xsl:copy-of select="*[namespace-uri(.) = namespace-uri(current())]"/></a>
           </xsl:for-each>  
         </out>
       </xsl:stream>
@@ -61,9 +61,9 @@
       <xsl:stream href="../docs/books.xml">
         <out>
           <xsl:for-each select="1 to 5">
-            <xsl:value-of select="(20 to 21)[. gt current()]"/>
+            <a><xsl:value-of select="(20 to 21)[. gt current()]"/></a>
           </xsl:for-each>  
-          <in><xsl:value-of select="count(//*)"/></in>
+          <b><xsl:value-of select="count(//*)"/></b>
         </out>
       </xsl:stream>
     </xsl:template>