Change an on-empty test to do what was intended
authorMichael Kay <mike@saxonica.com>
Thu, 13 Aug 2015 10:44:20 +0100
changeset 1036 8b4d0d1981b4
parent 1035 beaaed2912d9
child 1037 596904ccfb0f
Change an on-empty test to do what was intended
tests/strm/si-on-empty/si-on-empty-A.xsl
--- a/tests/strm/si-on-empty/si-on-empty-A.xsl	Thu Aug 13 10:43:31 2015 +0100
+++ b/tests/strm/si-on-empty/si-on-empty-A.xsl	Thu Aug 13 10:44:20 2015 +0100
@@ -210,9 +210,11 @@
         <xsl:variable name="t" as="document-node()?"> 
           <xsl:sequence select="$empty"/>         
           <xsl:on-empty>
-            <xsl:document>
-              <xsl:copy-of select="//TITLE[@flamingo]"/>
-            </xsl:document>
+            <xsl:conditional-content>
+              <xsl:document>
+                <xsl:copy-of select="//TITLE[@flamingo]"/>
+              </xsl:document>
+            </xsl:conditional-content>  
           </xsl:on-empty>
         </xsl:variable>
         <in value="{empty($t)}"/>