tests/insn/copy/_copy-test-set.xml
author Michael Kay <mike@saxonica.com>
Fri, 08 Aug 2014 12:25:05 +0100
changeset 591 9e5ff3068934
parent 258 b44194f93681
child 600 f6047a0547ac
permissions -rw-r--r--
New test case copy-3702 (Saxon bug report)
<?xml version="1.0" encoding="UTF-8"?>
<test-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
          name="copy">
   <description>Tests copy</description>
   <environment name="copy-01">
      <source role=".">
         <content><![CDATA[ 
<OL>
  <LI>item1</LI>
  <LI>item2</LI>
  <LI>item3</LI>
  <OL>
    <LI>subitem1</LI>
    <LI>subitem2</LI>
    <OL>
      <LI>subitem3</LI>
    </OL>
  </OL>
</OL>]]></content>
      </source>
   </environment>
   <environment name="copy-02">
      <source role=".">
         <content><![CDATA[ 
<fonts>
<b>
<font face="Arial">item3</font>
</b>
<i>
<font face="Default Serif" size="18">eatme</font>
</i>
</fonts>]]></content>
      </source>
   </environment>

   <environment name="copy-04">
      <source role=".">
         <content><![CDATA[
<doc>
  <foo att="x">text</foo>
  <?pling flip=no?>
  <!--really!-->
</doc>]]></content>
      </source>
   </environment>
   
   <environment name="copy-06">
      <source role=".">
         <content><![CDATA[<pink xmlns:rose="http://www.rose.com">
 <green xmlns:grass="http://www.grass.com">
  <red xmlns:blood="http://www.blood.com">
   <blue xmlns:sky="http://www.sky.com"/>
  </red>
 </green>
</pink>]]></content>
      </source>
   </environment>

   <environment name="copy-08">
      <source role=".">
         <content><![CDATA[ 
<OL>
  <LI>item1</LI>
  <LI>item2</LI>
  <LI>item3</LI>
  <OL>
    <LI>yes1</LI>
    <LI>me2</LI>
    <OL>
      <LI>subsubitem</LI>
    </OL>
  </OL>
</OL>]]></content>
      </source>
   </environment>
   
   <environment name="copy-10">
      <source role="." file="copy-10.xml"/>
   </environment>
   
   <environment name="copy-12">
      <source role=".">
         <content><![CDATA[<doc/>]]></content>
      </source>
   </environment>
   
   <environment name="copy-16">
      <source role=".">
         <content><![CDATA[ 
<?a-pi some data?>
<?pi-2 another?>
<doc><!-- This is a comment -->
  test
</doc>]]></content>
      </source>
   </environment>
   
   <environment name="copy-18">
      <source role="." file="copy-18.xml"/>
   </environment>

   <environment name="copy-22">
      <source role="." file="copy-22.xml"/>
   </environment>
   
   <environment name="copy-24">
      <source role="." file="copy-24.xml"/>
   </environment>
   <environment name="copy-25">
      <source role=".">
         <content><![CDATA[ 
<OL>
  <LI>item1</LI>
  <LI>item2</LI>
  <OL place="inner">
    <LI>subitem1</LI>
    <LI>subitem2</LI>
  </OL>
</OL>]]></content>
      </source>
   </environment>
   
   <environment name="copy-29">
      <source role=".">
         <content><![CDATA[ 
<doc>
  <!-- XYZ -->
</doc>]]></content>
      </source>
   </environment>
   <environment name="copy-30">
      <source role="." file="copy-30.xml"/>
   </environment>
   <environment name="copy-31">
      <source role="." file="copy-31.xml"/>
   </environment>
   <environment name="copy-32">
      <source role=".">
         <content><![CDATA[ 
<doc></doc>]]></content>
      </source>
   </environment>
   <environment name="copy-33">
      <source role="." file="copy-33.xml"/>
   </environment>
   <environment name="copy-34">
      <source role=".">
         <content><![CDATA[<doc id="1" class="mobile" xml:lang="en" >
<text>Sample text</text>
</doc>]]></content>
      </source>
   </environment>
   <environment name="copy-35">
      <source role=".">
         <content><![CDATA[<a:root xmlns:a="http://name-a.com/">
  <b:sub xmlns:b="http://name-b.com/"/>
  <c:sub xmlns:c="http://name-c.com/"/>
</a:root>]]></content>
      </source>
   </environment>
   <environment name="copy-36">
      <source role="." file="copy-36.xml"/>
   </environment>
   <environment name="copy-37">
      <source role="." file="copy-37.xml"/>
   </environment>
   <environment name="copy-38">
      <source role="." file="copy-38.xml"/>
   </environment>
   <environment name="copy-39">
      <source role="." file="copy-39.xml"/>
   </environment>
   <environment name="copy-40">
      <source role=".">
         <content><![CDATA[<docs>
  <a level="1">T1<b level="2">BBBB</b>T2</a>
</docs>]]></content>
      </source>
   </environment>
   <environment name="copy-41">
      <source role=".">
         <content><![CDATA[ 
<doc>foo<a place="above">top-level-a</a><doc><a place="below">sub-level-a</a></doc></doc>]]></content>
      </source>
   </environment>
   <environment name="copy-42">
      <source role=".">
         <content><![CDATA[<a><b><c id="1"/></b><c id="2"/></a>]]></content>
      </source>
   </environment>
   <environment name="copy-43">
      <source role=".">
         <content><![CDATA[<a/>]]></content>
      </source>
   </environment>
   <environment name="copy-44">
      <source role=".">
         <content><![CDATA[  <body>
	<div>some text</div>
	<a needsFixup="true">A link</a>
	<div>doesnt reach here in SA</div>
  </body>]]></content>
      </source>
   </environment>
   <environment name="copy-45">
      <source role=".">
         <content><![CDATA[<a x="1" y="2">
   <b/>
   <c/>
   <d x="5" y="7"/>
</a>
    ]]></content>
      </source>
   </environment>
   <environment name="copy-46">
      <source role=".">
         <content><![CDATA[<test test="test">
  <test2 test2="test2">
    <test3 test3="test3"/>
  </test2>
</test>]]></content>
      </source>
   </environment>
   <environment name="copy-47">
      <source role=".">
         <content><![CDATA[ 
<doc top="gotcha"></doc>]]></content>
      </source>
   </environment>
   <environment name="copy-48">
      <source role="." file="copy-48.xml"/>
   </environment>
   

   <test-case name="copy-0101">
      <description>Test for simple identity transformation w/Template match</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-01"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0101.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-0101.out"/>
      </result>
   </test-case>

   <test-case name="copy-0102">
      <description>Test for simple identity transformation, in main template</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-01"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0102.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-0102.out"/>
      </result>
   </test-case>

   <test-case name="copy-0103">
      <description>Simple identity transformation, Result tree fragment test for xsl:copy-of</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-01"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0103.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-0103.out"/>
      </result>
   </test-case>

   <test-case name="copy-0201">
      <description>Test for simple identity transformation</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-02"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0201.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><fonts>
<b>
<font face="Arial">item3</font>
</b>
<i>
<font face="Default Serif" size="18">eatme</font>
</i>
</fonts></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0202">
      <description>Copy and atomic value</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-02"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0202.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>test</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0203">
      <description>copy an atomic value</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-02"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0203.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>32</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0401">
      <description>BUG Saxon 5.5.1/010 Test that contents of xsl:copy are ignored for an attribute, comment, text node, or PI</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-04"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0401.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><doc>contents of xsl:copy</doc>
  <foo att="x">contents of xsl:copy</foo>text
  <?pling flip=no?>
  <!--really!-->
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0501">
      <description>Test copying of attribute from a temporary tree (docbook bug clearance) See bug 529362</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role=".">
            <content><![CDATA[<doc><a/><b/><c/></doc>]]></content>
         </source>
      </environment>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0501.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out xmlns="http://some.uri/" z="1"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0601">
      <description>test use copy-namespaces attribute of xsl:copy-of (XSLT 2.0)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-06"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0601.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-0601.out"/>
      </result>
   </test-case>

   <test-case name="copy-0602">
      <description>test use copy-namespaces attribute of xsl:copy (XSLT 2.0)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-06"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0602.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-0602.out"/>
      </result>
   </test-case>

   <test-case name="copy-0701">
      <description>
      	Test for copy-of with '*' wildcard pattern. 
      	This test also checks handling of processing instructions by copy-of.
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role=".">
            <content><![CDATA[<doc><b><?a-pi some data?><font face="Arial">item3</font></b></doc>]]></content>
         </source>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0701.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><doc><b><?a-pi some data?><font face="Arial">item3</font></b></doc></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0801">
      <description>Test for-each inside xsl:copy</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-08"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0801.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>yes1me2</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-0901">
      <description>
      	Use id(node-set) to try to create a set of nodes in random order. 
      	Either id() or xsl:copy is arranging them in document order.
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-09.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-0901.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>WXY</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1001">
      <description>Purpose: Test for identity transformation exactly as in spec.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-10"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1001.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-1001.out"/>
      </result>
   </test-case>

   <test-case name="copy-1002">
      <description>Another style of identity transform, where attributes are copied by copy-of rather than by recursive use of the template.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-10"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1002.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-1002.out"/>
      </result>
   </test-case>

   <test-case name="copy-1003">
      <description>FileName: copy43 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-10"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1003.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-1003.out"/>
      </result>
   </test-case>

   <test-case name="copy-1101">
      <description>Test for copy-of with union of attribute nodes.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
       <source role=".">
         <content><![CDATA[<TEST RELEASE="R6.0"><ELEMENT x="100000"/><ELEMENT x="2" y="3" z="4"/><ELEMENT x="33333"/></TEST>]]></content>
       </source>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1101.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><item x="100000"/><item x="2" z="4"/><item x="33333"/></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1201">
      <description>
      	Test copy-of a string constant containing character entity.
      	With this output encoding, should get one byte of xE8 for the &amp;egrave
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1201.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>abcdèfgh</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1202">
      <description>
      	Test copy-of a string constant containing character entity.
      	With this output encoding, should get two bytes (xC3,xA6) for the &amp;aelig
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1202.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>abcdæfgh</out>]]></assert-xml>
      </result>
   </test-case>
   
   <test-case name="copy-1203">
      <description>Demonstrate copying a named template from the stylesheet into the result. From a thread on XSL-list 7/30/2001.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1203.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-1203.out"/>
      </result>
   </test-case>
   
   <test-case name="copy-1204">
      <description>Make an RTF on the fly and watch for incorrect xml-decl placement</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1204.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><rtf>abc<in x="yz">def</in>ghi</rtf></out>]]></assert-xml>
      </result>
   </test-case>
   
   <test-case name="copy-1205">
      <description>Test xsl:copy on-empty</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1205.xsl"/>
      </test>
      <result>
         <assert>/out/rtf = 'abc'</assert>
      </result>
   </test-case>
   
   <test-case name="copy-1206">
      <description>Test xsl:copy on-empty: check that the returned node has been copied</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1206.xsl"/>
      </test>
      <result>
         <assert>/out/@copied = 'true'</assert>
      </result>
   </test-case>
   
   <test-case name="copy-1207">
      <description>Test xsl:copy on-empty: selecting empty sequence</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1207.xsl"/>
      </test>
      <result>
         <assert>/out/rtf = 'abc'</assert>
      </result>
   </test-case>
   
   <test-case name="copy-1208">
      <description>Test xsl:copy on-empty: empty document node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1208.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out/@p = "12"</assert>
             <assert>empty(/out/child::node())</assert>
         </all-of>    
      </result>
   </test-case>  
   
   <test-case name="copy-1209">
      <description>Test xsl:copy on-empty: empty document node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1209.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out/@p = "12"</assert>
             <assert>empty(/out/child::node())</assert>
         </all-of>    
      </result>
   </test-case>   
   
   <test-case name="copy-1210">
      <description>Test xsl:copy on-empty: content is a namespace node only</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1210.xsl"/>
      </test>
      <result>
         <assert>/out/rtf</assert>
      </result>
   </test-case> 
   
   <test-case name="copy-1211">
      <description>Test xsl:copy on-empty: non-empty document node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1211.xsl"/>
      </test>
      <result>
         <assert>/out/a/namespace::n</assert>
      </result>
   </test-case> 
   
   <test-case name="copy-1212">
      <description>Test xsl:copy on-empty: empty comment node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1212.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>empty(/out/node())</assert>
         </all-of>
      </result>
   </test-case>
   
   <test-case name="copy-1213">
      <description>Test xsl:copy on-empty: non-empty comment node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1213.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>/out/comment() = "Boo!"</assert>
         </all-of>
      </result>
   </test-case>   
   
   <test-case name="copy-1214">
      <description>Test xsl:copy on-empty: empty text node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1214.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>empty(/out/node())</assert>
         </all-of>
      </result>
   </test-case>
   
   <test-case name="copy-1215">
      <description>Test xsl:copy on-empty: non-empty text node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1215.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>/out/text() = "Boo!"</assert>
         </all-of>
      </result>
   </test-case>
   
   <test-case name="copy-1216">
      <description>Test xsl:copy on-empty: empty PI node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1216.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>empty(/out/node())</assert>
         </all-of>
      </result>
   </test-case>
   
   <test-case name="copy-1217">
      <description>Test xsl:copy on-empty: non-empty PI node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1217.xsl"/>
      </test>
      <result>
         <all-of>
             <assert>/out</assert>
             <assert>/out/processing-instruction() = "Boo!"</assert>
         </all-of>
      </result>
   </test-case>  
   
   <test-case name="copy-1218">
      <description>Test xsl:copy on-empty: empty attribute node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1218.xsl"/>
      </test>
      <result>
         <assert>/out/@y = '3'</assert>
      </result>
   </test-case>
   
   <test-case name="copy-1219">
      <description>Test xsl:copy on-empty: non-empty attribute node</description>
      <created by="Michael Kay" on="2013-07-30"/>
      <environment ref="copy-12"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1219.xsl"/>
      </test>
      <result>
         <assert>/out/@y = '3'</assert>
      </result>
   </test-case>      
   
   

   <test-case name="copy-1301">
      <description>Ensure that external entity reference works in copy.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-13.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1301.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<test><extEnt attr="x"><sub2>z</sub2></extEnt></test>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1401">
      <description>
      	Ensure that external entity reference with high-byte character works in copy. 
      	With this output encoding, should get one byte of xBE for the &amp;frac34
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
      <source role=".">
         <content><![CDATA[<!DOCTYPE test [ 
  <!ELEMENT test (#PCDATA)> 
  <!ENTITY extEnt SYSTEM "ent22.xml">
  ]>
  <test>abcd&extEnt;fgh</test>]]></content>
      </source>
   </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1401.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<test>abcdE¾Efgh</test>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1501">
      <description>Purpose: Test for copy-of text nodes including CDATA.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
      <source role=".">
         <content><![CDATA[ 
<doc>
  <simple>abcde</simple>
  <coded>ab<![CDATA[<P>&nbsp;</P>]]]]><![CDATA[>de</coded>
</doc>]]></content>
      </source>
   </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1501.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><doc>
  <simple>abcde</simple>
  <coded>ab&lt;P&gt;&amp;nbsp;&lt;/P&gt;de</coded>
</doc></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1601">
      <description>Test for processing-instruction() node-test in copy-of. should say "Found-pi,,Found-pi"</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-16"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1601.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?a-pi some data?>...
<?a-pi some data?><?pi-2 another?>...
<doc><!-- This is a comment -->
  test
</doc></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1602">
      <description>FileName: copy24 Document: http://www.w3.org/TR/xpath DocVersion: 19991116 Section: 2.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-16"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1602.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?a-pi some data?>;
    <?pi-2 another?>;   
    <?a-pi some data?><?pi-2 another?></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1701">
      <description>
      	Accumulate attributes from several places in the source. 
      	First, get all attribute nodes under the 'a' node in the source next, get an attribute node from elsewhere
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-17.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1701.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><a attr="w" dim="h" size="l" h="17" w="37"/></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-1801">
      <description>:Should be able to copy the same tree fragment twice in succession.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-18"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-1801.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><node4 ax="by+c">bar4</node4><node4 ax="by+c">bar4</node4></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2001">
      <description>Purpose: Test for copy-of an empty node.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role=".">
            <content><![CDATA[<doc><simple>abcde</simple><empty/></doc>]]></content>
         </source>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2001.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><doc><simple>abcde</simple><empty/></doc></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2101">
      <description>current() should work in copy-of.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role=".">
            <content><![CDATA[ 
<doc name="foo">
  <!-- This is a comment -->
    test<![CDATA[<]]]]><![CDATA[> 
  <?a-pi some data?>
</doc>]]></content>
         </source>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2101.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-2101.out"/>
      </result>
   </test-case>

   <test-case name="copy-2201">
      <description>Use key() to try to create a set of nodes in random order.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-22"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2201.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><a level="1" origin="Albany">1a2</a><a level="2" origin="Albany">2a3</a><a level="3" origin="Albany">2xa2</a><a level="3" origin="Albany">2xa3</a></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2202">
      <description>FileName: copy40 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3 Using Values of Variables &amp; Parameters with xsl:copy-of.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-22"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2202.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><a level="1" data="1a2"/>
<a level="2" data="2a3"/>
<a level="3" data="2xa2"/>
<a level="3" data="2xa3"/>
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2301">
      <description>Test for xsl:copy with nodeset. Shows handling of namespaces.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-23.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2301.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-2301.out"/>
      </result>
   </test-case>

   <test-case name="copy-2401">
      <description>Make each comment be the current node, and copy it.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-24"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2401.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><!-- Comment-1 -->
<!-- Comment-2 -->
<!-- Comment-3 -->
<!-- Comment-4 -->
<!-- Comment-5 -->
<!-- Comment-6 -->
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2402">
      <description>Make each PI be the current node, and copy it.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-24"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2402.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?a-pi pi-2?>
<?a-pi pi-3?>
<?a-pi pi-4?>
<?a-pi pi-5?>
<?a-pi pi-6?>
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2501">
      <description>Make an RTF of the whole doc and watch for incorrect xml-decl placement.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-25"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2501.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><OL>
  <LI>item1</LI>
  <LI>item2</LI>
  <OL place="inner">
    <LI>subitem1</LI>
    <LI>subitem2</LI>
  </OL>
</OL></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2502">
      <description>Make a node-set of the whole doc and watch for incorrect xml-decl placement.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-25"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2502.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><OL>
  <LI>item1</LI>
  <LI>item2</LI>
  <OL place="inner">
    <LI>subitem1</LI>
    <LI>subitem2</LI>
  </OL>
</OL></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-2601">
      <description>Use prefixed attributes with no preceding text nodes.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-26.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2601.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-2601.out"/>
      </result>
   </test-case>

   <test-case name="copy-2701">
      <description>Look for bug in building union for identity transform.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-27.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2701.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-2701.out"/>
      </result>
   </test-case>

   <test-case name="copy-2801">
      <description>Using copy-of for repeated output of an RTF (HTML output) Source Attribution: This test was written by Michael Kay and is taken from 'XSLT Programmer's Reference' published by Wrox Press Limited in 2000; ISBN 1-861003-12-9; copyright Wrox Press Limited 2000; all rights reserved. Now updated in the second edition (ISBN 1-861005-06-7), http://www.wrox.com. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means - electronic, electrostatic, mechanical, photocopying, recording or otherwise - without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews. Origin: copy-of/soccer.xml, copy-of/soccer.xsl, Chapter/Page: 4-185, was MK015 before</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment>
         <source role="." file="copy-28.xml"/>
      </environment>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2801.xsl"/>
      </test>
      <result>
         <assert-serialization method="html" file="copy38.out"/>
      </result>
   </test-case>

   <test-case name="copy-2901">
      <description>FileName: COPY41 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-29"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-2901.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<!-- XYZ --><out/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3001">
      <description>FileName: copy42 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-30"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3001.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3001.out"/>
      </result>
   </test-case>

   <test-case name="copy-3101">
      <description>FileName: copy44 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-31"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3101.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3101.out"/>
      </result>
   </test-case>

   <test-case name="copy-3102">
      <description>FileName: copy46 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.2</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-31"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3102.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3102.out"/>
      </result>
   </test-case>

   <test-case name="copy-3301">
      <description>FileName: copy47 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.1.1 (and 11.3)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-33"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3301.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3301.out"/>
      </result>
   </test-case>

   <test-case name="copy-3302">
      <description>FileName: copy48 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.1.1 (and 11.3)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-33"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3302.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3302.out"/>
      </result>
   </test-case>

   <test-case name="copy-3401">
      <description>FileName: copy49 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.5</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-34"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3401.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<document id="1" class="mobile" xml:lang="en"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3501">
      <description>FileName: copy51 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.5</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-35"/>
      <dependencies>
         <spec value="XSLT10+"/>
         <feature value="namespace_axis"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3501.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out xmlns:a="http://name-a.com/" xmlns:b="http://name-b.com/"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3601">
      <description>FileName: copy52 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.5</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-36"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3601.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?b-pi pi-2?>
<?b-pi pi-4?>
<?b-pi pi-6?>
<?b-pi pi-8?>
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3602">
      <description>FileName: copy53 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-36"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3602.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?b-pi pi-2?><?b-pi pi-4?><?b-pi pi-6?><?b-pi pi-8?></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3603">
      <description>FileName: copy54 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.5</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-36"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3603.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><?b-pi pi-4?>
<?b-pi pi-6?>
<?b-pi pi-8?>
</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3701">
      <description>FileName: COPY55 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 7.5</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-37"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3701.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-3701.out"/>
      </result>
   </test-case>
   
   <test-case name="copy-3702">
      <description>Test that in-scope namespaces are copied (Saxon bug repro)</description>
      <created by="Michael Kay" on="2014-08-05"/>
      <environment ref="copy-37"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3702.xsl"/>
      </test>
      <result>
         <!--xml||tns|ns1|ns2-->
         <all-of>
           <assert>tokenize(/*, '\|') = 'xml'</assert>
           <assert>tokenize(/*, '\|') = ''</assert>
           <assert>tokenize(/*, '\|') = 'tns'</assert>
           <assert>tokenize(/*, '\|') = 'ns1'</assert>
           <assert>tokenize(/*, '\|') = 'ns2'</assert>
         </all-of>
      </result>
   </test-case>

   <test-case name="copy-3801">
      <description>FileName: copy56 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 AdditionalSpec: http://www.w3.org/1999/11/REC-xslt-19991116-errata/#E27</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-38"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3801.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out attr1="Hello&#xA;        Success&#xA;        &#xA;      More"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-3901">
      <description>FileName: copy57 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 AdditionalSpec: http://www.w3.org/1999/11/REC-xslt-19991116-errata/#E27</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-39"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-3901.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out attr1="D1D3D2"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4001">
      <description>FileName: copy58 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 AdditionalSpec: http://www.w3.org/1999/11/REC-xslt-19991116-errata/#E27</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-40"/>
      <dependencies>
         <spec value="XSLT10+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4001.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out attr1="T1BBBBT2"/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4101">
      <description>FileName: copy59 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3 Using Values of Variables &amp; Parameters with xsl:copy-of.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-41"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4101.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><!--foo top-level-a sub-level-a--><!--  footop-level-asub-level-a--></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4102">
      <description>FileName: copy60 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3 Using Values of Variables &amp; Parameters with xsl:copy-of.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-41"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4102.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out spec-change="2004-03-05"><?pi1 foo top-level-a sub-level-a?><?pi2 footop-level-asub-level-a?></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4201">
      <description/>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-42"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4201.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<root><a-root/></root>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4301">
      <description>Generated by NiceXSL 2.0.4 at Fri Apr 23 15:11:09 BST 2004</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4301.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<root><a-root/></root>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4302">
      <description>Use xsl:copy to copy document nodes</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4302.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out count="3"><a>24</a><a>25</a><a>26</a></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4303">
      <description>Use xsl:copy-of to copy document nodes</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4303.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out count="3"><a>23</a><a>23</a><a>23</a></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4304">
      <description>Use xsl:copy-of within a function, which in Saxon will do a virtual copy</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4304.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<a xmlns:f="http://f/">9</a>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4305">
      <description>
      	Check that in a copy of a tree, axes only navigate within the subtree that was copied 
      	&lt;xsl:variable name="cp" select="$in//c"/&gt;
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4305.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out><a>c</a><a>c d</a><f>e</f><p/></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4306">
      <description>
      	Saxon 8.5.1 bug report from Krzysztof Nowicki. 
      	Copying a document node followed by an element node in the sequence constructor of a new document node.
      </description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4306.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<testtest><test1>10</test1><test1>9</test1><test1>8</test1><test1>7</test1
            ><test1>6</test1><test1>5</test1><test1>4</test1><test1>3</test1><test1>2</test1><test1>1</test1></testtest>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4307">
      <description>Test xsl:copy when there is no context item. See spec bug 7624. In this example the error can be detected statically.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy903err.xsl"/>
      </test>
      <result>
         <error code="XTTE0945"/>
      </result>
   </test-case>

   <test-case name="copy-4308">
      <description>Test xsl:copy when there is no context item. See spec bug 7624. In this example the error is detected dynamically.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-43"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy903err.xsl"/>
      </test>
      <result>
         <error code="XTTE0945"/>
      </result>
   </test-case>

   <test-case name="copy-4401">
      <description>Bug: Saxon-SA 8.7 gives different results from Saxon-B 8.7</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-44"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4401.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<body xmlns="http://www.w3.org/1999/xhtml">
	<div>some text</div>
	<a href="asdf" title="asdf">
			asdf
		</a>
	<div>doesnt reach here in SA</div>
  </body>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4501">
      <description>xsl:copy changes the context (with select attribute)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-45"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4501.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-4501.out"/>
      </result>
   </test-case>

   <test-case name="copy-4502">
      <description>xsl:copy doesn't change the context (without select attribute)</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-45"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4502.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-4502.out"/>
      </result>
   </test-case>

   <test-case name="copy-4601">
      <description>FileName: COPY50 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-46"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4601.xsl"/>
      </test>
      <result>
         <error code="XTDE0420"/>
      </result>
   </test-case>

   <test-case name="copy-4701">
      <description>FileName: copy61 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-47"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4701.xsl"/>
      </test>
      <result>
         <error code="XTDE0410"/>
      </result>
   </test-case>

   <test-case name="copy-4702">
      <description>FileName: copy62 Document: http://www.w3.org/TR/xslt DocVersion: 19991116 Section: 11.3</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-47"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4702.xsl"/>
      </test>
      <result>
         <error code="XTDE0410"/>
      </result>
   </test-case>

   <test-case name="copy-4801">
      <description>Test for simple identity transformation w/Template match, using select attribute</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-48"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4801.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-4801.out"/>
      </result>
   </test-case>

   <test-case name="copy-4802">
      <description>Test for simple identity transformation w/Template match, using select attribute</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-48"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4802.xsl"/>
      </test>
      <result>
         <assert-xml file="copy-4802.out"/>
      </result>
   </test-case>

   <test-case name="copy-4803">
      <description>xsl:copy in 3.0 applied to an empty sequence</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-48"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4803.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4804">
      <description>xsl:copy in 3.0 applied to an atomic value</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="copy-48"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4804.xsl"/>
      </test>
      <result>
         <assert-xml><![CDATA[<out>abc</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="copy-4805">
      <description>xsl:copy in 3.0 applied to a sequence of several items</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <modified by="Tim Mills" on="2013-02-01" change="Corrected error code"/>
      <environment ref="copy-48"/>
      <dependencies>
         <spec value="XSLT30+"/>
      </dependencies>
      <test>
         <stylesheet file="copy-4805.xsl"/>
      </test>
      <result>
         <error code="XTTE3180"/>
      </result>
   </test-case>

  
</test-set>