Adding several on-empty tests
authorabraaksm
Tue, 09 Feb 2016 03:08:51 +0100
changeset 1220 de6f62f225d8
parent 1219 0536311c1b31
child 1221 9cd84770e5ef
Adding several on-empty tests
tests/insn/on-empty/_on-empty-test-set.xml
tests/insn/on-empty/on-empty-100.xsl
tests/insn/on-empty/on-empty-101.xsl
tests/insn/on-empty/on-empty-101a.xsl
tests/insn/on-empty/on-empty-101b.xsl
tests/insn/on-empty/on-empty-101c.xsl
tests/insn/on-empty/on-empty-101d.xsl
tests/insn/on-empty/on-empty-102.xsl
tests/insn/on-empty/on-empty-102a.xsl
tests/insn/on-empty/on-empty-102b.xsl
tests/insn/on-empty/on-empty-102c.xsl
tests/insn/on-empty/on-empty-102d.xsl
tests/insn/on-empty/on-empty-103.xsl
tests/insn/on-empty/on-empty-103a.xsl
tests/insn/on-empty/on-empty-103b.xsl
tests/insn/on-empty/on-empty-103c.xsl
tests/insn/on-empty/on-empty-103d.xsl
tests/insn/on-empty/on-empty-104.xsl
tests/insn/on-empty/on-empty-104a.xsl
tests/insn/on-empty/on-empty-104b.xsl
tests/insn/on-empty/on-empty-104c.xsl
tests/insn/on-empty/on-empty-104d.xsl
tests/insn/on-empty/on-empty-105.xsl
tests/insn/on-empty/on-empty-105a.xsl
tests/insn/on-empty/on-empty-105b.xsl
tests/insn/on-empty/on-empty-105c.xsl
tests/insn/on-empty/on-empty-105d.xsl
tests/insn/on-empty/on-empty-106.xsl
tests/insn/on-empty/on-empty-106a.xsl
tests/insn/on-empty/on-empty-106b.xsl
tests/insn/on-empty/on-empty-106c.xsl
tests/insn/on-empty/on-empty-106d.xsl
tests/insn/on-empty/on-empty-107.xsl
tests/insn/on-empty/on-empty-107a.xsl
tests/insn/on-empty/on-empty-107b.xsl
tests/insn/on-empty/on-empty-107c.xsl
tests/insn/on-empty/on-empty-107d.xsl
tests/insn/on-empty/on-empty-108.xsl
tests/insn/on-empty/on-empty-108a.xsl
tests/insn/on-empty/on-empty-108b.xsl
tests/insn/on-empty/on-empty-108c.xsl
tests/insn/on-empty/on-empty-108d.xsl
tests/insn/on-empty/on-empty-109.xsl
tests/insn/on-empty/on-empty-109a.xsl
tests/insn/on-empty/on-empty-109b.xsl
tests/insn/on-empty/on-empty-109c.xsl
tests/insn/on-empty/on-empty-109d.xsl
tests/insn/on-empty/on-empty-110.xsl
tests/insn/on-empty/on-empty-111.xsl
tests/insn/on-empty/on-empty-112.xsl
tests/insn/on-empty/on-empty-113.xsl
tests/insn/on-empty/on-empty-900.xsl
tests/insn/on-empty/on-empty-901.xsl
--- a/tests/insn/on-empty/_on-empty-test-set.xml	Tue Feb 09 03:08:12 2016 +0100
+++ b/tests/insn/on-empty/_on-empty-test-set.xml	Tue Feb 09 03:08:51 2016 +0100
@@ -6,6 +6,10 @@
       Tests sequence constructors containing xsl:on-empty instructions
    </description>
    
+   <dependencies>
+      <spec value="XSLT30+"/>
+   </dependencies>
+   
 
    
    <environment name="on-empty-A">
@@ -23,9 +27,6 @@
       <description>Simple use of xsl:on-empty with no other instructions</description>
       <created by="Michael Kay" on="2014-12-22"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-001.xsl"/>
       </test>
@@ -38,9 +39,6 @@
       <description>Simple use of xsl:on-empty with other instructions yielding empty</description>
       <created by="Michael Kay" on="2014-12-22"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-002.xsl"/>
       </test>
@@ -54,9 +52,6 @@
       <created by="Michael Kay" on="2014-12-22"/>
       <modified by="Michael Kay" on="2015-08-16" change="bug 28888 makes this an error"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-003.xsl"/>
       </test>
@@ -70,9 +65,6 @@
       <created by="Michael Kay" on="2014-12-22"/>
       <modified by="Michael Kay" on="2015-08-16" change="bug 28888 makes this an error"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-004.xsl"/>
       </test>
@@ -86,9 +78,6 @@
       <created by="Michael Kay" on="2014-12-22"/>
       <modified by="Michael Kay" on="2015-08-24" change="strip whitespace to give cleaner results comparison"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-005.xsl"/>
       </test>
@@ -102,9 +91,6 @@
       <created by="Michael Kay" on="2014-12-22"/>
       <modified by="Michael Kay" on="2015-08-16" change="modified so it's not an error under bug 28888"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-006.xsl"/>
       </test>
@@ -117,9 +103,6 @@
       <description>xsl:on-empty followed by significant text nodes</description>
       <created by="Michael Kay" on="2015-08-16"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-007.xsl"/>
       </test>
@@ -132,9 +115,6 @@
       <description>Stereotypical use case for xsl:on-empty</description>
       <created by="Michael Kay" on="2014-12-22"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-008.xsl"/>
       </test>
@@ -147,9 +127,6 @@
       <description>Stereotypical use case for xsl:on-empty</description>
       <created by="Michael Kay" on="2014-12-22"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-009.xsl"/>
       </test>
@@ -162,9 +139,6 @@
       <description>Use xsl:on-empty with xsl:sort</description>
       <created by="Michael Kay" on="2014-12-22"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-010.xsl"/>
       </test>
@@ -177,9 +151,6 @@
       <description>Zero length text nodes count as empty (bug 28888)</description>
       <created by="Michael Kay" on="2015-08-16"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-011.xsl"/>
       </test>
@@ -192,9 +163,6 @@
       <description>Empty document nodes count as empty (bug 28888)</description>
       <created by="Michael Kay" on="2015-08-16"/>
       <environment ref="on-empty-A"/>
-      <dependencies>
-         <spec value="XSLT30+"/>
-      </dependencies>
       <test>
          <stylesheet file="on-empty-012.xsl"/>
       </test>
@@ -203,5 +171,762 @@
       </result>
    </test-case>
 
+   <test-case name="on-empty-100">
+      <description>Basic test with on-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <test>
+         <stylesheet file="on-empty-100.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>we are the champions!</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-101">
+      <description>Basic test with on-empty with numeric</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-101.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>42</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-101a">
+      <description>Basic test with on-empty with sequence</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-101a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-101b">
+      <description>Basic test with on-empty with base64</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-101b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>dkaieKDsiws85eks</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-101c">
+      <description>Basic test with on-empty with element</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-101c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><this><is><empty/></is></this></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-101d">
+      <description>Basic test with on-empty with document</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-101d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><document/></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-102">
+      <description>Basic test with on-empty with numeric</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-102.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>42</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-102a">
+      <description>Basic test with on-empty with sequence</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-102a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-102b">
+      <description>Basic test with on-empty with base64</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-102b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>dkaieKDsiws85eks</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-102c">
+      <description>Basic test with on-empty with element</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-102c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><this><is><empty/></is></this></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-102d">
+      <description>Basic test with on-empty with document</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-102d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><document/></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-103">
+      <description>Basic test with on-empty with numeric, not empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-103.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>not so empty</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-103a">
+      <description>Basic test with on-empty with sequence, not empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-103a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>not so empty</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-103b">
+      <description>Basic test with on-empty with base64, not empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-103b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>not so empty</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-103c">
+      <description>Basic test with on-empty with element, not empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-103c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>not so empty</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-103d">
+      <description>Basic test with on-empty with document, not empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-103d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>not so empty</empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-104">
+      <description>Basic test with on-empty with numeric and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-104.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty> </empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-104a">
+      <description>Basic test with on-empty with sequence and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-104a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty> </empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-104b">
+      <description>Basic test with on-empty with base64 and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-104b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty> </empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-104c">
+      <description>Basic test with on-empty with element and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-104c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty> </empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-104d">
+      <description>Basic test with on-empty with document and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-104d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty> </empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-105">
+      <description>Basic test with on-empty with numeric and three empty comments, not considered empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-105.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><!----><!----><!----></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-105a">
+      <description>Basic test with on-empty with sequence and three empty comments, not considered empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-105a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><!----><!----><!----></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-105b">
+      <description>Basic test with on-empty with base64 and three empty comments, not considered empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-105b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><!----><!----><!----></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-105c">
+      <description>Basic test with on-empty with element and three empty comments, not considered empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-105c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><!----><!----><!----></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-105d">
+      <description>Basic test with on-empty with document and three empty comments, not considered empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-105d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><!----><!----><!----></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-106">
+      <description>Basic test with on-empty with numeric and an attribute constructor canceling making the content non-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-106.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-106a">
+      <description>Basic test with on-empty with sequence and an attribute constructor canceling making the content non-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-106a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-106b">
+      <description>Basic test with on-empty with base64 and an attribute constructor canceling making the content non-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-106b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-106c">
+      <description>Basic test with on-empty with element and an attribute constructor canceling making the content non-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-106c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-106d">
+      <description>Basic test with on-empty with document and an attribute constructor canceling making the content non-empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-106d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"/>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-107">
+      <description>Basic test with on-empty with numeric and a namespace</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-107.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty xmlns:test="http://testme"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-107a">
+      <description>Basic test with on-empty with sequence and a namespace</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-107a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty xmlns:test="http://testme"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-107b">
+      <description>Basic test with on-empty with base64 and a namespace</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-107b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty xmlns:test="http://testme"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-107c">
+      <description>Basic test with on-empty with element and a namespace</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-107c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty xmlns:test="http://testme"/>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-107d">
+      <description>Basic test with on-empty with document and a namespace</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-107d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty xmlns:test="http://testme"/>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-108">
+      <description>Basic test with on-empty with numeric and a use-attributes, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-108.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">42</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-108a">
+      <description>Basic test with on-empty with sequence and a use-attributes, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-108a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-108b">
+      <description>Basic test with on-empty with base64 and a use-attributes, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-108b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">dkaieKDsiws85eks</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-108c">
+      <description>Basic test with on-empty with element and a use-attributes, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-108c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"><this><is><empty/></is></this></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-108d">
+      <description>Basic test with on-empty with document and a use-attributes, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-108d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"><document/></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-109">
+      <description>Basic test with on-empty with numeric and an attribute, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-109.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">42</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-109a">
+      <description>Basic test with on-empty with sequence and an attribute, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-109a.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-109b">
+      <description>Basic test with on-empty with base64 and an attribute, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-109b.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two">dkaieKDsiws85eks</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-109c">
+      <description>Basic test with on-empty with element and an attribute, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-109c.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"><this><is><empty/></is></this></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-109d">
+      <description>Basic test with on-empty with document and an attribute, leaving the content empty</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-109d.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty what-is="fourty-two"><document/></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-110">
+      <description>Test with on-empty, nested and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-110.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty><empty>42</empty></empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   <test-case name="on-empty-111">
+      <description>Test with on-empty, nested with variables and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-111.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty>42</empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-112">
+      <description>Test with on-empty, combined with for-each</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-112.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty>123456789|111213141516171819 |212223242526272829 |313233343536373839 |414243444546474849 |515253545556575859 |616263646566676869 |717273747576777879 |818283848586878889 |919293949596979899 |</empty>]]></assert-xml>
+      </result>
+   </test-case>
+
+   <test-case name="on-empty-113">
+      <description>Test with on-empty, combined with for-each</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-113.xsl"/>
+      </test>
+      <result>
+         <assert-string-value>START-->1  | 3  | 5  | 7  | 9  | 11  | 13  | 15  | 17  | 19  | 21  | 23  | 25  | 27  | 29  | 31  | 33  | 35  | 37  | 39  | 41  | 43  | 45  | 47  | 49  | 51  | 53  | 55  | 57  | 59  | 61  | 63  | 65  | 67  | 69  | 71  | 73  | 75  | 77  | 79  | 81  | 83  | 85  | 87  | 89  | 91  | 93  | 95  | 97  | 99 &lt;-- END |</assert-string-value>
+      </result>
+   </test-case>
+
+
+   <test-case name="on-empty-114">
+      <description>Test with on-empty, nested with variables and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-111.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty>42</empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   
+   <test-case name="on-empty-115">
+      <description>Test with on-empty, nested with variables and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-111.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty>42</empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   
+   <test-case name="on-empty-116">
+      <description>Test with on-empty, nested with variables and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-111.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty>42</empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+   
+   
+   <test-case name="on-empty-117">
+      <description>Test with on-empty, nested with variables and significant space</description>
+      <created by="Abel Braaksma" on="2016-01-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="on-empty-111.xsl"/>
+      </test>
+      <result>
+         <assert-xml><![CDATA[<empty><empty>42</empty></empty>]]></assert-xml>
+      </result>
+   </test-case>
+
 
 </test-set>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-100.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:on-empty select="'we are the champions!'"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-101.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-101a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-101b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-101c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,12 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-101d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-102.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <!-- comment is still empty -->
+            <xsl:text><!-- empty text node --></xsl:text>
+            <xsl:value-of select="(1 to 10)[position() = 11]" />
+            <xsl:for-each select="20 to 30"><xsl:text><!--nothing --></xsl:text></xsl:for-each>
+            <?pi not a part ?>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-102a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <!-- comment is still empty -->
+            <xsl:text><!-- empty text node --></xsl:text>
+            <xsl:value-of select="(1 to 10)[position() = 11]" />
+            <xsl:for-each select="20 to 30"><xsl:text><!--nothing --></xsl:text></xsl:for-each>
+            <?pi not a part ?>
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-102b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <!-- comment is still empty -->
+            <xsl:text><!-- empty text node --></xsl:text>
+            <xsl:value-of select="(1 to 10)[position() = 11]" />
+            <xsl:for-each select="20 to 30"><xsl:text><!--nothing --></xsl:text></xsl:for-each>
+            <?pi not a part ?>
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-102c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,17 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <!-- comment is still empty -->
+            <xsl:text><!-- empty text node --></xsl:text>
+            <xsl:value-of select="(1 to 10)[position() = 11]" />
+            <xsl:for-each select="20 to 30"><xsl:text><!--nothing --></xsl:text></xsl:for-each>
+            <?pi not a part ?>
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-102d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,19 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <!-- comment is still empty -->
+            <xsl:text><!-- empty text node --></xsl:text>
+            <xsl:value-of select="(1 to 10)[position() = 11]" />
+            <xsl:for-each select="20 to 30"><xsl:text><!--nothing --></xsl:text></xsl:for-each>
+            <?pi not a part ?>
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-103.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text>not so empty</xsl:text>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-103a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text>not so empty</xsl:text>
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-103b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text>not so empty</xsl:text>
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-103c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text>not so empty</xsl:text>
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-103d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text>not so empty</xsl:text>
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-104.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text><!-- significant space --> <!-- is not empty --></xsl:text>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-104a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text><!-- significant space --> <!-- is not empty --></xsl:text>
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-104b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text><!-- significant space --> <!-- is not empty --></xsl:text>
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-104c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text><!-- significant space --> <!-- is not empty --></xsl:text>
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-104d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:text><!-- significant space --> <!-- is not empty --></xsl:text>
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-105.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:variable name="comments" as="comment()*">
+                <xsl:comment select="''"></xsl:comment>
+                <xsl:comment select="''"><!-- empty comment --></xsl:comment>
+                <xsl:comment></xsl:comment>
+            </xsl:variable>
+            <xsl:copy-of select="$comments" />
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-105a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:variable name="comments" as="comment()*">
+                <xsl:comment select="''"></xsl:comment>
+                <xsl:comment select="''"><!-- empty comment --></xsl:comment>
+                <xsl:comment></xsl:comment>
+            </xsl:variable>
+            <xsl:copy-of select="$comments" />
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-105b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:variable name="comments" as="comment()*">
+                <xsl:comment select="''"></xsl:comment>
+                <xsl:comment select="''"><!-- empty comment --></xsl:comment>
+                <xsl:comment></xsl:comment>
+            </xsl:variable>
+            <xsl:copy-of select="$comments" />
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-105c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,18 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:variable name="comments" as="comment()*">
+                <xsl:comment select="''"></xsl:comment>
+                <xsl:comment select="''"><!-- empty comment --></xsl:comment>
+                <xsl:comment></xsl:comment>
+            </xsl:variable>
+            <xsl:copy-of select="$comments" />
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-105d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,20 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:variable name="comments" as="comment()*">
+                <xsl:comment select="''"></xsl:comment>
+                <xsl:comment select="''"><!-- empty comment --></xsl:comment>
+                <xsl:comment></xsl:comment>
+            </xsl:variable>
+            <xsl:copy-of select="$comments" />
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-106.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-106a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-106b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-106c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-106d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-107.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:namespace name="test">http://testme</xsl:namespace>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-107a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:namespace name="test">http://testme</xsl:namespace>
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-107b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:namespace name="test">http://testme</xsl:namespace>
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-107c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:namespace name="test">http://testme</xsl:namespace>
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-107d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:namespace name="test">http://testme</xsl:namespace>
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-108.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+    
+    <xsl:attribute-set name="a">
+        <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+    </xsl:attribute-set>
+  
+    <xsl:template name="xsl:initial-template">
+        <empty xsl:use-attribute-sets="a">
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-108a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+
+    <xsl:attribute-set name="a">
+        <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+    </xsl:attribute-set>
+  
+
+    <xsl:template name="xsl:initial-template">
+        <empty xsl:use-attribute-sets="a">
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-108b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:attribute-set name="a">
+        <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+    </xsl:attribute-set>
+  
+    <xsl:template name="xsl:initial-template">
+        <empty xsl:use-attribute-sets="a">
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-108c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,17 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:attribute-set name="a">
+        <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+    </xsl:attribute-set>
+  
+
+    <xsl:template name="xsl:initial-template">
+        <empty xsl:use-attribute-sets="a">
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-108d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,18 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:attribute-set name="a">
+        <xsl:attribute name="what-is">fourty-two</xsl:attribute>
+    </xsl:attribute-set>
+  
+    <xsl:template name="xsl:initial-template">
+        <empty xsl:use-attribute-sets="a">
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-109.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty what-is="fourty-two">
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-109a.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty what-is="fourty-two">
+            <xsl:on-empty select="for $i in 1 to 100 return $i mod 2"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-109b.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty what-is="fourty-two">
+            <xsl:on-empty select="xs:base64Binary('dkaieKDsiws85eks')"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-109c.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,12 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty what-is="fourty-two">
+            <xsl:on-empty>
+                <this><is><empty/></is></this>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-109d.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty what-is="fourty-two">
+            <xsl:on-empty>
+                <xsl:document>
+                    <document />
+                </xsl:document>
+            </xsl:on-empty> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-110.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty, nested -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <empty>
+                <empty>            
+                    <xsl:on-empty select="42"/> 
+                </empty>
+                <xsl:on-empty select="42"/> 
+            </empty>
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-111.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,33 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty, nested in variables -->
+  
+    <xsl:template name="xsl:initial-template">
+        <xsl:variable name="empty">
+            <empty>
+                <xsl:variable name="empty">
+                    <xsl:variable name="empty">
+                        <empty>
+                            <!-- kicks in, creates <empty>42</empty> -->
+                            <xsl:on-empty select="42"/> 
+                        </empty>
+                        <!-- does not kick in -->
+                        <xsl:on-empty select="42"/> 
+                    </xsl:variable>
+                    <!-- returns <empty>42</empty> -->
+                    <xsl:sequence select="$empty/empty" />
+                    <!-- does not kick in -->
+                    <xsl:on-empty select="42"/> 
+                </xsl:variable>
+                <!-- returns <empty>42</empty> -->
+                <xsl:sequence select="$empty/empty" />
+                <!-- does not kick in -->
+                <xsl:on-empty select="42"/> 
+            </empty>
+        </xsl:variable>
+        <!-- returns <empty><empty>42</empty></empty> -->
+        <xsl:sequence select="$empty/empty" />
+        <!-- does not kick in -->
+        <xsl:on-empty select="42"/>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-112.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty in combination with other constructs -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty> 
+            <xsl:for-each select="1 to 100">
+                <xsl:value-of select="if(. mod 10) then . else ''" />
+                <xsl:on-empty select="'|'"/> 
+            </xsl:for-each>
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-113.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,18 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty in combination with other constructs -->
+    
+    <xsl:output method="text" />
+  
+    <xsl:template match="/" name="xsl-initial-template">
+        <xsl:for-each select="1 to 100">
+            <xsl:text expand-text="yes">{ if(. = 1) then 'START-->' else ''}</xsl:text>
+            <xsl:sequence select="''" />
+            <xsl:value-of select="if(. mod 2) then . else ''" />
+            <xsl:sequence select="''" />
+            <xsl:sequence select="if(. mod 2) then () else '|'"/>
+            <xsl:text expand-text="yes">{''}</xsl:text>
+            <xsl:text expand-text="yes">{ if(. = 100) then '&lt;-- END' else ''}</xsl:text>
+        </xsl:for-each>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-900.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,11 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty error, multiple -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>            
+            <xsl:on-empty select="()"/> 
+            <xsl:on-empty select="42"/> 
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/on-empty/on-empty-901.xsl	Tue Feb 09 03:08:51 2016 +0100
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <!-- basic tests with xsl:on-empty, error w/siblings -->
+  
+    <xsl:template name="xsl:initial-template">
+        <empty>
+            <xsl:on-empty select="42"/> 
+            <empty>
+                <xsl:on-empty select="42"/> 
+                <empty>            
+                    <xsl:on-empty select="42"/> 
+                </empty>
+            </empty>
+        </empty>
+    </xsl:template>
+
+</xsl:stylesheet>