Reorganised and expanded error code tests
authorMichael Kay <mike@saxonica.com>
Thu, 28 Aug 2014 21:57:28 +0100
changeset 635 b23a6b06e1d2
parent 634 56715f343cd7
child 636 b54ab8f059d0
Reorganised and expanded error code tests
tests/misc/error/_error-test-set.xml
tests/misc/error/convert-tests2.xsl
tests/misc/error/error-0010a.xsl
tests/misc/error/error-0010aa.xsl
tests/misc/error/error-0010ab.xsl
tests/misc/error/error-0010ac.xsl
tests/misc/error/error-0010ad.xsl
tests/misc/error/error-0010ae.xsl
tests/misc/error/error-0010af.xsl
tests/misc/error/error-0010ag.xsl
tests/misc/error/error-0010ah.xsl
tests/misc/error/error-0010ai.xsl
tests/misc/error/error-0010aj.xsl
tests/misc/error/error-0010ak.xsl
tests/misc/error/error-0010al.xsl
tests/misc/error/error-0010am.xsl
tests/misc/error/error-0010an.xsl
tests/misc/error/error-0010ao.xsl
tests/misc/error/error-0010ap.xsl
tests/misc/error/error-0010aq.xsl
tests/misc/error/error-0010ar.xsl
tests/misc/error/error-0010as.xsl
tests/misc/error/error-0010at.xsl
tests/misc/error/error-0010au.xsl
tests/misc/error/error-0010av.xsl
tests/misc/error/error-0010aw.xsl
tests/misc/error/error-0010ax.xsl
tests/misc/error/error-0010ay.xsl
tests/misc/error/error-0010az.xsl
tests/misc/error/error-0010b.xsl
tests/misc/error/error-0010ba.xsl
tests/misc/error/error-0010bb.xsl
tests/misc/error/error-0010c.xsl
tests/misc/error/error-0010d.xsl
tests/misc/error/error-0010e.xsl
tests/misc/error/error-0010f.xsl
tests/misc/error/error-0010g.xsl
tests/misc/error/error-0010h.xsl
tests/misc/error/error-0010i.xsl
tests/misc/error/error-0010j.xsl
tests/misc/error/error-0010k.xsl
tests/misc/error/error-0010l.xsl
tests/misc/error/error-0010m.xsl
tests/misc/error/error-0010n.xsl
tests/misc/error/error-0010o.xsl
tests/misc/error/error-0010p.xsl
tests/misc/error/error-0010q.xsl
tests/misc/error/error-0010r.xsl
tests/misc/error/error-0010s.xsl
tests/misc/error/error-0010t.xsl
tests/misc/error/error-0010u.xsl
tests/misc/error/error-0010v.xsl
tests/misc/error/error-0010w.xsl
tests/misc/error/error-0010x.xsl
tests/misc/error/error-0010y.xsl
tests/misc/error/error-0010z.xsl
tests/misc/error/error-0020a.xsl
tests/misc/error/error-0020b.xsl
tests/misc/error/error-0020c.xsl
tests/misc/error/error-0020d.xsl
tests/misc/error/error-0020e.xsl
tests/misc/error/error-0020f.xsl
tests/misc/error/error-0020g.xsl
tests/misc/error/error-0020h.xsl
tests/misc/error/error-0020i.xsl
tests/misc/error/error-0020j.xsl
tests/misc/error/error-0020k.xsl
tests/misc/error/error-0030a.xsl
tests/misc/error/error-0040a.xsl
tests/misc/error/error-0041a.xsl
tests/misc/error/error-0044a.xsl
tests/misc/error/error-0045a.xsl
tests/misc/error/error-0047a.xsl
tests/misc/error/error-0050a.xsl
tests/misc/error/error-0060a.xsl
tests/misc/error/error-0080a.xsl
tests/misc/error/error-0090a.xsl
tests/misc/error/error-0090b.xsl
tests/misc/error/error-0090c.xsl
tests/misc/error/error-0090d.xsl
tests/misc/error/error-0090e.xsl
tests/misc/error/error-0090f.xsl
tests/misc/error/error-0090g.xsl
tests/misc/error/error-0090h.xsl
tests/misc/error/error-0090i.xsl
tests/misc/error/error-0090j.xsl
tests/misc/error/error-0090k.xsl
tests/misc/error/error-0090l.xsl
tests/misc/error/error-0090m.xsl
tests/misc/error/error-0090n.xsl
tests/misc/error/error-0110a.xsl
tests/misc/error/error-0120a.xsl
tests/misc/error/error-0120b.xsl
tests/misc/error/error-0125a.xsl
tests/misc/error/error-0130a.xsl
tests/misc/error/error-0150a.xsl
tests/misc/error/error-0150b.xsl
tests/misc/error/error-0150c.xsl
tests/misc/error/error-0150d.xsl
tests/misc/error/error-0150e.xsl
tests/misc/error/error-0160a.xsl
tests/misc/error/error-0165a.xsl
tests/misc/error/error-0165b.xsl
tests/misc/error/error-0165c.xsl
tests/misc/error/error-0165d.xsl
tests/misc/error/error-0165e.xsl
tests/misc/error/error-0165f.xsl
tests/misc/error/error-0165g.xsl
tests/misc/error/error-0165h.xsl
tests/misc/error/error-0165i.xsl
tests/misc/error/error-0170a.xsl
tests/misc/error/error-0170b.xsl
tests/misc/error/error-0180a.xsl
tests/misc/error/error-0180b.xsl
tests/misc/error/error-0180c.xsl
tests/misc/error/error-0180d.xsl
tests/misc/error/error-0180e.xsl
tests/misc/error/error-0180f.xsl
tests/misc/error/error-0190a.xsl
tests/misc/error/error-0190b.xsl
tests/misc/error/error-0200a.xsl
tests/misc/error/error-0200b.xsl
tests/misc/error/error-0200c.xsl
tests/misc/error/error-0210a.xsl
tests/misc/error/error-0210b.xsl
tests/misc/error/error-0210c.xsl
tests/misc/error/error-0210d.xsl
tests/misc/error/error-0210e.xsl
tests/misc/error/error-0210f.xsl
tests/misc/error/error-0215a.xsl
tests/misc/error/error-0215b.xsl
tests/misc/error/error-0220a.xsl
tests/misc/error/error-0260a.xsl
tests/misc/error/error-0260b.xsl
tests/misc/error/error-0260c.xsl
tests/misc/error/error-0260d.xsl
tests/misc/error/error-0265a.xsl
tests/misc/error/error-0270a.xsl
tests/misc/error/error-0280a.xsl
tests/misc/error/error-0280b.xsl
tests/misc/error/error-0280c.xsl
tests/misc/error/error-0280d.xsl
tests/misc/error/error-0280e.xsl
tests/misc/error/error-0280f.xsl
tests/misc/error/error-0290a.xsl
tests/misc/error/error-0340a.xsl
tests/misc/error/error-0340b.xsl
tests/misc/error/error-0340c.xsl
tests/misc/error/error-0340d.xsl
tests/misc/error/error-0350a.xsl
tests/misc/error/error-0350b.xsl
tests/misc/error/error-0370a.xsl
tests/misc/error/error-0410a.xsl
tests/misc/error/error-0420a.xsl
tests/misc/error/error-0420b.xsl
tests/misc/error/error-0430a.xsl
tests/misc/error/error-0440a.xsl
tests/misc/error/error-0440b.xsl
tests/misc/error/error-0450a.xsl
tests/misc/error/error-0500a.xsl
tests/misc/error/error-0500b.xsl
tests/misc/error/error-0500c.xsl
tests/misc/error/error-0500d.xsl
tests/misc/error/error-0505a.xsl
tests/misc/error/error-0510a.xsl
tests/misc/error/error-0520a.xsl
tests/misc/error/error-0520b.xsl
tests/misc/error/error-0520c.xsl
tests/misc/error/error-0520d.xsl
tests/misc/error/error-0530a.xsl
tests/misc/error/error-0540a.xsl
tests/misc/error/error-0545a.xsl
tests/misc/error/error-0545b.xsl
tests/misc/error/error-0550a.xsl
tests/misc/error/error-0550b.xsl
tests/misc/error/error-0550c.xsl
tests/misc/error/error-0550d.xsl
tests/misc/error/error-0550e.xsl
tests/misc/error/error-0550f.xsl
tests/misc/error/error-0555a.xsl
tests/misc/error/error-0555b.xsl
tests/misc/error/error-0555c.xsl
tests/misc/error/error-0560a.xsl
tests/misc/error/error-0560b.xsl
tests/misc/error/error-0560c.xsl
tests/misc/error/error-0560d.xsl
tests/misc/error/error-0570a.xsl
tests/misc/error/error-0570b.xsl
tests/misc/error/error-0570c.xsl
tests/misc/error/error-0570d.xsl
tests/misc/error/error-0580a.xsl
tests/misc/error/error-0580b.xsl
tests/misc/error/error-0590a.xsl
tests/misc/error/error-0600a.xsl
tests/misc/error/error-0610a.xsl
tests/misc/error/error-0610b.xsl
tests/misc/error/error-0620a.xsl
tests/misc/error/error-0620b.xsl
tests/misc/error/error-0630a.xsl
tests/misc/error/error-0630b.xsl
tests/misc/error/error-0630c.xsl
tests/misc/error/error-0640a.xsl
tests/misc/error/error-0640b.xsl
tests/misc/error/error-0640c.xsl
tests/misc/error/error-0640d.xsl
tests/misc/error/error-0640e.xsl
tests/misc/error/error-0640f.xsl
tests/misc/error/error-0640g.xsl
tests/misc/error/error-0640h.xsl
tests/misc/error/error-0650a.xsl
tests/misc/error/error-0650b.xsl
tests/misc/error/error-0650c.xsl
tests/misc/error/error-0660a.xsl
tests/misc/error/error-0660a2.xsl
tests/misc/error/error-0660b.xsl
tests/misc/error/error-0660c.xsl
tests/misc/error/error-0660d.xsl
tests/misc/error/error-0670a.xsl
tests/misc/error/error-0670b.xsl
tests/misc/error/error-0670c.xsl
tests/misc/error/error-0670d.xsl
tests/misc/error/error-0680a.xsl
tests/misc/error/error-0690a.xsl
tests/misc/error/error-0700a.xsl
tests/misc/error/error-0710a.xsl
tests/misc/error/error-0710b.xsl
tests/misc/error/error-0710c.xsl
tests/misc/error/error-0710d.xsl
tests/misc/error/error-0720a.xsl
tests/misc/error/error-0720b.xsl
tests/misc/error/error-0720c.xsl
tests/misc/error/error-0720d.xsl
tests/misc/error/error-0730a.xsl
tests/misc/error/error-0740a.xsl
tests/misc/error/error-0760a.xsl
tests/misc/error/error-0760b.xsl
tests/misc/error/error-0770a.xsl
tests/misc/error/error-0780a.xsl
tests/misc/error/error-0790a.xsl
tests/misc/error/error-0805a.xsl
tests/misc/error/error-0808a.xsl
tests/misc/error/error-0808b.xsl
tests/misc/error/error-0808c.xsl
tests/misc/error/error-0809a.xsl
tests/misc/error/error-0810a.xsl
tests/misc/error/error-0810b.xsl
tests/misc/error/error-0812a.xsl
tests/misc/error/error-0820a.xsl
tests/misc/error/error-0820b.xsl
tests/misc/error/error-0820c.xsl
tests/misc/error/error-0830a.xsl
tests/misc/error/error-0830b.xsl
tests/misc/error/error-0835a.xsl
tests/misc/error/error-0840a.xsl
tests/misc/error/error-0850a.xsl
tests/misc/error/error-0855a.xsl
tests/misc/error/error-0860a.xsl
tests/misc/error/error-0865a.xsl
tests/misc/error/error-0870a.xsl
tests/misc/error/error-0880a.xsl
tests/misc/error/error-0890a.xsl
tests/misc/error/error-0890b.xsl
tests/misc/error/error-0905a.xsl
tests/misc/error/error-0910a.xsl
tests/misc/error/error-0920a.xsl
tests/misc/error/error-0920b.xsl
tests/misc/error/error-0925a.xsl
tests/misc/error/error-0925b.xsl
tests/misc/error/error-0930a.xsl
tests/misc/error/error-0940a.xsl
tests/misc/error/error-0945a.xsl
tests/misc/error/error-0950a.xsl
tests/misc/error/error-0950b.xsl
tests/misc/error/error-0975a.xsl
tests/misc/error/error-0975b.xsl
tests/misc/error/error-0975c.xsl
tests/misc/error/error-0975d.xsl
tests/misc/error/error-0980a.xsl
tests/misc/error/error-0990a.xsl
tests/misc/error/error-1000a.xsl
tests/misc/error/error-1001a.xsl
tests/misc/error/error-1015a.xsl
tests/misc/error/error-1017a.xsl
tests/misc/error/error-1020a.xsl
tests/misc/error/error-1030a.xsl
tests/misc/error/error-1035a.xsl
tests/misc/error/error-1040a.xsl
tests/misc/error/error-1060a.xsl
tests/misc/error/error-1061a.xsl
tests/misc/error/error-1070a.xsl
tests/misc/error/error-1071a.xsl
tests/misc/error/error-1071b.xsl
tests/misc/error/error-1080a.xsl
tests/misc/error/error-1080b.xsl
tests/misc/error/error-1080c.xsl
tests/misc/error/error-1090a.xsl
tests/misc/error/error-1100a.xsl
tests/misc/error/error-1100b.xsl
tests/misc/error/error-1110a.xsl
tests/misc/error/error-1120a.xsl
tests/misc/error/error-1130a.xsl
tests/misc/error/error-1140a.xsl
tests/misc/error/error-1145a.xsl
tests/misc/error/error-1150a.xsl
tests/misc/error/error-1160a.xsl
tests/misc/error/error-1162a.xsl
tests/misc/error/error-1162b.xsl
tests/misc/error/error-1205a.xsl
tests/misc/error/error-1205b.xsl
tests/misc/error/error-1210a.xsl
tests/misc/error/error-1210b.xsl
tests/misc/error/error-1220a.xsl
tests/misc/error/error-1222a.xsl
tests/misc/error/error-1260a.xsl
tests/misc/error/error-1260b.xsl
tests/misc/error/error-1260c.xsl
tests/misc/error/error-1260d.xsl
tests/misc/error/error-1260e.xsl
tests/misc/error/error-1260f.xsl
tests/misc/error/error-1270a.xsl
tests/misc/error/error-1270b.xsl
tests/misc/error/error-1270c.xsl
tests/misc/error/error-1290a.xsl
tests/misc/error/error-1290b.xsl
tests/misc/error/error-1295a.xsl
tests/misc/error/error-1295b.xsl
tests/misc/error/error-1300a.xsl
tests/misc/error/error-1300b.xsl
tests/misc/error/error-1300c.xsl
tests/misc/error/error-1360a.xsl
tests/misc/error/error-1370a.xsl
tests/misc/error/error-1370b.xsl
tests/misc/error/error-1380a.xsl
tests/misc/error/error-1380b.xsl
tests/misc/error/error-1390a.xsl
tests/misc/error/error-1390b.xsl
tests/misc/error/error-1390c.xsl
tests/misc/error/error-1400a.xsl
tests/misc/error/error-1400b.xsl
tests/misc/error/error-1420a.xsl
tests/misc/error/error-1425a.xsl
tests/misc/error/error-1428a.xsl
tests/misc/error/error-1430a.xsl
tests/misc/error/error-1440a.xsl
tests/misc/error/error-1440b.xsl
tests/misc/error/error-1450a.xsl
tests/misc/error/error-1450b.xsl
tests/misc/error/error-1460a.xsl
tests/misc/error/error-1460b.xsl
tests/misc/error/error-1460c.xsl
tests/misc/error/error-1460d.xsl
tests/misc/error/error-1480a.xsl
tests/misc/error/error-1480b.xsl
tests/misc/error/error-1490a.xsl
tests/misc/error/error-1490b.xsl
tests/misc/error/error-1490c.xsl
tests/misc/error/error-1495a.xsl
tests/misc/error/error-1500a.xml
tests/misc/error/error-1500a.xsl
tests/misc/error/error-1505a.xsl
tests/misc/error/error-1505b.xsl
tests/misc/error/error-1510a.xsl
tests/misc/error/error-1510b.xsl
tests/misc/error/error-1510c.xsl
tests/misc/error/error-1512a.xsl
tests/misc/error/error-1515a.xsl
tests/misc/error/error-1520a.xsl
tests/misc/error/error-1520b.xsl
tests/misc/error/error-1520c.xsl
tests/misc/error/error-1530a.xsl
tests/misc/error/error-1535a.xsl
tests/misc/error/error-1540a.xsl
tests/misc/error/error-1545a.xsl
tests/misc/error/error-1550a.xsl
tests/misc/error/error-1550b.xsl
tests/misc/error/error-1555a.xsl
tests/misc/error/error-1555b.xsl
tests/misc/error/error-1555c.xsl
tests/misc/error/error-1560a.xsl
tests/misc/error/error-1560b.xsl
tests/misc/error/error-1570a.xsl
tests/misc/error/error-1580a.xsl
tests/misc/error/error-1590a.xsl
tests/misc/error/error-1600a.xsl
tests/misc/error/error-1620a.xsl
tests/misc/error/error-1630a.xsl
tests/misc/error/error-1650a.xsl
tests/misc/error/error-1660a.xsl
tests/misc/error/error-1665a.xsl
tests/misc/error/error-2200a.xsl
tests/misc/error/error-2210a.xsl
tests/misc/error/error-2220a.xsl
tests/misc/error/error-2230a.xsl
tests/misc/error/error-3000a.xsl
tests/misc/error/error-3010a.xsl
tests/misc/error/error-3020a.xsl
tests/misc/error/error-3030a.xsl
tests/misc/error/error-3040a.xsl
tests/misc/error/error-3050a.xsl
tests/misc/error/error-3052a.xsl
tests/misc/error/error-3055a.xsl
tests/misc/error/error-3058a.xsl
tests/misc/error/error-3060a.xsl
tests/misc/error/error-3070a.xsl
tests/misc/error/error-3080a.xsl
tests/misc/error/error-3085a.xsl
tests/misc/error/error-3090a.xsl
tests/misc/error/error-3100a.xsl
tests/misc/error/error-3105a.xsl
tests/misc/error/error-3110a.xsl
tests/misc/error/error-3120a.xsl
tests/misc/error/error-3125a.xsl
tests/misc/error/error-3125b.xsl
tests/misc/error/error-3130a.xsl
tests/misc/error/error-3140a.xsl
tests/misc/error/error-3150a.xsl
tests/misc/error/error-3160a.xsl
tests/misc/error/error-3170a.xsl
tests/misc/error/error-3175a.xsl
tests/misc/error/error-3180a.xsl
tests/misc/error/error-3185a.xsl
tests/misc/error/error-3190a.xsl
tests/misc/error/error-3200a.xsl
tests/misc/error/error-3210a.xsl
tests/misc/error/error-3240a.xsl
tests/misc/error/error-3245a.xsl
tests/misc/error/error-3250a.xsl
tests/misc/error/error-3255a.xsl
tests/misc/error/error-3260a.xsl
tests/misc/error/error-3265a.xsl
tests/misc/error/error-3280a.xsl
tests/misc/error/error-3300a.xsl
tests/misc/error/error-3310a.xsl
tests/misc/error/error-3330a.xsl
tests/misc/error/error-3340a.xsl
tests/misc/error/error-3340d.xsl
tests/misc/error/error-3350a.xsl
tests/misc/error/error-3360a.xsl
tests/misc/error/error-3360b.xsl
tests/misc/error/error-3360c.xsl
tests/misc/error/error-3365a.xsl
tests/misc/error/error-3368a.xsl
tests/misc/error/error-3370a.xsl
tests/misc/error/error-3375a.xsl
tests/misc/error/error-3380a.xsl
tests/misc/error/error-3390a.xsl
tests/misc/error/error-3400a.xsl
tests/misc/error/error-3410a.xsl
tests/misc/error/error-3420a.xsl
tests/misc/error/error-3430a.xsl
tests/misc/error/error-3440a.xsl
tests/misc/error/error-3440b.xsl
tests/misc/error/error-3440c.xsl
tests/misc/error/error-3440d.xsl
tests/misc/error/error-3450a.xsl
tests/misc/error/error-3450a2.xsl
tests/misc/error/error-3460a.xsl
tests/misc/error/error-3470a.xsl
tests/misc/error/error-3480a.xsl
tests/misc/error/error-3490a.xsl
tests/misc/error/error-3500a.xsl
tests/misc/error/error-3510a.xsl
tests/misc/error/error-3520a.xsl
tests/misc/error/error-3530a.xsl
tests/misc/error/error-9000a.xsl
tests/misc/error/error-9001a.xsl
tests/misc/error/error-base-002.xsl
tests/misc/error/error-base-003.xsl
tests/misc/error/error-base-004.xsl
tests/misc/error/error-base-005.xsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/misc/error/_error-test-set.xml	Thu Aug 28 21:57:28 2014 +0100
@@ -0,0 +1,9869 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          name="error-code">
+   <description>
+                Tests error conditions. 
+                This test set should include a test for every error code (however, coverage of new XSLT 3.0 errors is incomplete).
+            </description>
+  
+   <environment name="error001">
+      <source role=".">
+         <content><![CDATA[<doc>
+  <element attribute="3"/>
+</doc>]]></content>
+      </source>
+   </environment>
+   
+   <environment name="error002">
+      <package file="error-base-002.xsl" role="secondary" 
+               uri="http://www.w3.org/xslt30tests/error-base-002" package-version="1.0.0"/>
+   </environment>
+   
+   <environment name="error003">
+      <package file="error-base-002.xsl" role="secondary" 
+               uri="http://www.w3.org/xslt30tests/error-base-002" package-version="1.0.0"/>
+      <package file="error-base-003.xsl" role="secondary" 
+               uri="http://www.w3.org/xslt30tests/error-base-003" package-version="1.0.0"/>         
+   </environment>
+   
+   <environment name="error004">
+      <package file="error-base-004.xsl" role="secondary" 
+               uri="http://www.w3.org/xslt30tests/error-base-004" package-version="1.0.0"/>
+   </environment>
+   
+   <environment name="error005">
+      <package file="error-base-005.xsl" role="secondary" 
+               uri="http://www.w3.org/xslt30tests/error-base-005" package-version="1.0.0"/>
+   </environment>
+   
+   <environment name="error152">
+      <source role=".">
+         <content><![CDATA[ 
+                        
+<doc>
+    <item val="1"/>
+    <item val="2"/>
+    <item val="3"/>
+    <item val="4"/>
+    <item val="5"/>                
+</doc>]]></content>
+      </source>
+   </environment>
+   <environment name="error214">
+      <source role=".">
+         <content><![CDATA[<t04>
+  <a id="a" code="1" value="10"/>
+  <a id="b" code="2" value="20"/>
+  <a id="c" code="2" value="30"/>
+  <a id="d" code="1" value="40"/>
+</t04>]]></content>
+      </source>
+   </environment>
+
+   <test-case name="error-0010a">
+      <description>Error: &lt;xsl:param&gt; must come first.
+Was error-code-018.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010b">
+      <description>Error: xsl:stylesheet no version att.
+Was error-code-035.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010c">
+      <description>Error: xsl:apply-imports top level.
+Was error-code-040.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010d">
+      <description>Error: xsl:apply-imports - xsl:sort not allowed here.
+Was error-code-042.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010e">
+      <description>Error: xsl:apply-imports - xsl:fallback not allowed here.
+Was error-code-043.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010e.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010f">
+      <description>Error: xsl:apply-templates misplaced xsl:text.
+Was error-code-047.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010f.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010g">
+      <description>Error: xsl:apply-templates (top level).
+Was error-code-048.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010g.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010h">
+      <description>Error: xsl:call-template misplaced xsl:sort.
+Was error-code-051.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010h.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010i">
+      <description>Error: xsl:choose.
+Was error-code-053.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010i.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010j">
+      <description>Error: xsl:choose.
+Was error-code-054.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010j.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0090"/>
+            <error code="XTSE0010"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010k">
+      <description>Error: xsl:choose.
+Was error-code-055.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010k.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010l">
+      <description>Error: xsl:choose.
+Was error-code-056.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010l.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010m">
+      <description>Error: xsl:choose.
+Was error-code-057.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010m.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010n">
+      <description>Error: xsl:choose.
+Was error-code-058.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010n.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010o">
+      <description>Error: xsl:choose.
+Was error-code-059.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010o.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010p">
+      <description>Error: xsl:decimal-format (not top level).
+Was error-code-062.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010p.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010q">
+      <description>Error: xsl:attribute-set - no name.
+Was error-code-074.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010q.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010r">
+      <description>Error: xsl:attribute-set - bad content.
+Was error-code-076.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010r.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010s">
+      <description>Error: xsl:attribute-set - bad content.
+Was error-code-077.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010s.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010t">
+      <description>Error: xsl:attribute-set - bad content.
+Was error-code-078.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010t.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010u">
+      <description>Error: xsl:key - no match attribute.
+Was error-code-084.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010u.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010v">
+      <description>Error: xsl:key - not top-level.
+Was error-code-088.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010v.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010w">
+      <description>Error: xsl:include - no href.
+Was error-code-089.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010w.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010x">
+      <description>Error: xsl:include - not top-level.
+Was error-code-093.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010x.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0170"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010y">
+      <description>Error: xsl:import - no href.
+Was error-code-098.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010y.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010z">
+      <description>Error: xsl:import - not top-level.
+Was error-code-102.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010z.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0190"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010aa">
+      <description>Error: xsl:template - not top level.
+Was error-code-111.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010aa.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ab">
+      <description>Error: xsl:template - bad content.
+Was error-code-116.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ab.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ac">
+      <description>Error: xsl:template - bad content.
+Was error-code-117.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ac.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ad">
+      <description>Error: xsl:call-template - omitted template name.
+Was error-code-122.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ad.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ae">
+      <description>Error: xsl:call-template - extra attribute.
+Was error-code-123.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ae.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010af">
+      <description>Error: xsl:call-template - must be in a template body.
+Was error-code-124.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010af.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ag">
+      <description>Error: xsl:call-template - bad content.
+Was error-code-125.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ag.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ah">
+      <description>Error: xsl:call-template - bad content.
+Was error-code-128.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ah.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ai">
+      <description>Error: xsl:call-template - bad content.
+Was error-code-129.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ai.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010aj">
+      <description>Error: xsl:apply-templates - bad content.
+Was error-code-132.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010aj.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ak">
+      <description>Error: xsl:apply-templates - top-level.
+Was error-code-135.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ak.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010al">
+      <description>Error: xsl:for-each - xsl:sort must come first.
+Was error-code-137.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010al.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010am">
+      <description>Error: xsl:with-param - misspelt.
+Was error-code-138.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010am.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010an">
+      <description>Error: xsl:variable - no name.
+Was error-code-140.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010an.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ao">
+      <description>Error: xsl:param - wrong position.
+Was error-code-142.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ao.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ap">
+      <description>Error: xsl:param - wrong position.
+Was error-code-143.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ap.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010aq">
+      <description>Error: xsl:strip-space with misspelled attribute.
+Was error-code-148.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010aq.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ar">
+      <description>Error: invliad top-level XSLT element.
+Was error-code-151.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ar.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010as">
+      <description>Test validation when version matches supported version. This stylesheet should flag an error..
+Was error-code-152.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010as.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010at">
+      <description>Test validation when version is lower than supported version. This stylesheet should flag an error..
+Was error-code-153.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010at.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010au">
+      <description>BUG: 5.4.1/008 DESCRIPTION: No error is reported if xsl:text or xsl:value-of is used at the top level of the stylesheet..
+Was error-code-154.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010au.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010av">
+      <description>test for disabling output escaping in nested xsl:text now an error, XSLT 2.0 no longer allows nested xsl:text.
+Was error-code-166.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="disabling_output_escaping"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010av.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010aw">
+      <description>xsl:stylesheet not at top level.
+Was error-code-174.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010aw.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ax">
+      <description>unknown top-level element in XSLT namespace.
+Was error-code-175.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ax.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ay">
+      <description>variable declared as child of xsl:apply-imports.
+Was error-code-176.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ay.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010az">
+      <description>Generate error XTSE0010.
+Was error-code-199.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010az.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010ba">
+      <description>xsl:stylesheet element in wrong position.
+Was error-code-200.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010ba.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0010bb">
+      <description>Generate error XTSE0010 (Note: was XTDE1450 in an earlier draft specification).
+Was error-code-377.
+It is a static error if an
+                     XSLT-defined element is used in a context where it is not permitted, if a
+                        required attribute is omitted, or if the content of the
+                     element does not correspond to the content that is allowed for the element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0010bb.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0010"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020a">
+      <description>Error: xsl:decimal-format.
+Was error-code-060.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020b">
+      <description>Error: xsl:decimal-format.
+Was error-code-064.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020c">
+      <description>Error: xsl:attribute-set - bad name.
+Was error-code-072.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020d">
+      <description>Error: xsl:key - bad key name.
+Was error-code-083.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020e">
+      <description>Error: xsl:template - bad name.
+Was error-code-109.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020e.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020f">
+      <description>Error: xsl:call-template - bad template name.
+Was error-code-119.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020f.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020g">
+      <description>Error: xsl:apply-templates - bad mode.
+Was error-code-131.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020g.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020h">
+      <description>Error: xsl:variable - bad name.
+Was error-code-136.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020h.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020i">
+      <description>tunnel='yes' not allowed on a stylesheet parameter.
+Was error-code-188.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020i.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020j">
+      <description>tunnel='yes' not allowed on a function parameter.
+Was error-code-189.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020j.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0020k">
+      <description>Generate error XTSE0020.
+Was error-code-201.
+It is a static error if an
+                           attribute (other than an attribute written using curly brackets in a
+                           position where an attribute
+                              value template is permitted) contains a value that is not
+                           one of the permitted values for that attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0020k.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0030a">
+      <description>Generate error XTDE0030.
+Was error-code-202.
+It is a non-recoverable dynamic
+                              error if the effective
+                              value of an attribute written using curly brackets, in a
+                           position where an attribute
+                              value template is permitted, is a value that is not one of
+                           the permitted values for that attribute. If the processor is able to
+                           detect the error statically (for example, when any XPath expressions
+                           within the curly brackets can be evaluated statically), then the
+                           processor may optionally signal this as a static error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0030a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0030"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0040a">
+      <description>Generate error XTDE0040.
+Was error-code-409.
+It is a non-recoverable dynamic
+                        error if the invocation of the stylesheet specifies a template name that does not match the
+                        expanded QName of a named
+                     template defined in the stylesheet.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0040a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0040"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0041a">
+      <description>Error: It is a dynamic error if the invocation of the stylesheet specifies a function name and arity that does not match the
+                        expanded QName and arity of a named 
+                        stylesheet function defined in the stylesheet,
+                     whose visibility is public or final.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0041a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0041"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0044a">
+      <description>Error: It is a dynamic
+                        error if the invocation of the stylesheet specifies an initial mode and if no initial match selection 
+                                 is supplied (either explicitly, or
+                        defaulted to the global context item).</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0044a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0044"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0045a">
+      <description>Error: It is a non-recoverable dynamic
+                        error if the invocation of the stylesheet specifies an initial mode (other than the default mode) that does not match the
+                        expanded QName in the
+                        mode attribute of any template defined in the stylesheet.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0045a.xsl"/>
+         <initial-mode name="non-existent-mode"/>
+      </test>
+      <result>
+         <error code="XTDE0045"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0047a">
+      <description>Error: It is a non-recoverable dynamic
+                        error if the invocation of the stylesheet specifies both an initial mode and an initial template.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0047a.xsl"/>
+         <initial-template name="main"/>
+         <initial-mode name="m"/>
+      </test>
+      <result>
+         <error code="XTDE0047"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0050a">
+      <description>Generate error XTDE0050.
+Was error-code-203.
+It is a non-recoverable dynamic
+                        error if the stylesheet that is invoked declares a visible
+                        stylesheet parameter with
+                        required="yes" and no value for this parameter is supplied
+                     during the invocation of the stylesheet. A stylesheet parameter is visible if
+                     it is not masked by another global variable or parameter with the same name and
+                     higher import precedence.
+                  If the parameter is a static parameter then
+                  the value must be supplied prior to the static analysis phase.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0050a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0050"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0080a">
+      <description>Generate error XTSE0080.
+Was error-code-206.
+It is a static error to use a reserved namespace in the name of a
+                        named template, a mode, an attribute
+                        set, a key, a decimal-format, a variable or parameter, a stylesheet
+                        function, a named output
+                        definition, or a character
+                        map.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0080a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0080"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090a">
+      <description>Error: xsl:stylesheet extra att.
+Was error-code-036.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090b">
+      <description>Error: xsl:apply-imports extra select attribute.
+Was error-code-041.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090c">
+      <description>Error: xsl:apply-templates disallowed attribute.
+Was error-code-046.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090d">
+      <description>Error: xsl:call-template with surplus attribute.
+Was error-code-050.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090e">
+      <description>Error: xsl:choose.
+Was error-code-054.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090e.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0090"/>
+            <error code="XTSE0010"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090f">
+      <description>Error: xsl:attribute-set - extra attributes.
+Was error-code-075.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090f.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090g">
+      <description>Error: xsl:key - extra attribute.
+Was error-code-087.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090g.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090h">
+      <description>Error: xsl:include - no href.
+Was error-code-089.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090h.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090i">
+      <description>Error: xsl:import - no href.
+Was error-code-098.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090i.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090j">
+      <description>Error: xsl:template - extra attribute.
+Was error-code-112.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090j.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090k">
+      <description>Error: xsl:call-template - extra attribute.
+Was error-code-123.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090k.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090l">
+      <description>Error: xsl:apply-templates - extra attribute.
+Was error-code-134.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090l.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090m">
+      <description>Error: xsl:strip-space with misspelled attribute.
+Was error-code-148.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090m.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0090"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0090n">
+      <description>Generate error XTSE0090.
+Was error-code-207.
+It is a static error for an element
+                     from the XSLT namespace to have an attribute whose namespace is either null
+                     (that is, an attribute with an unprefixed name) or the XSLT namespace, other
+                     than attributes defined for the element in this document.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0090n.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0110a">
+      <description>Generate error XTSE0110.
+Was error-code-208.
+The value of the version attribute must be a
+                     number: specifically, it must be a valid instance of the
+                     type xs:decimal as defined in .</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0110a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0110"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0120a">
+      <description>Error: text at top level.
+Was error-code-147.
+An xsl:stylesheet element must not have any
+                     text node children.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0120a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0120"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0120b">
+      <description>Generate error XTSE0120.
+Was error-code-209.
+An xsl:stylesheet element must not have any
+                     text node children.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0120b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0120"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0125a">
+      <description>Generate error XTSE0125.
+Was error-code-210.
+It is a static error if the value
+                        of an [xsl:]default-collation attribute, after resolving
+                        against the base URI, contains no URI that the implementation recognizes as
+                        a collation URI.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0125a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0125"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0130a">
+      <description>Generate error XTSE0130.
+Was error-code-211.
+It is a static error if the
+                           xsl:stylesheet element has a child element whose name
+                        has a null namespace URI.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0130a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0130"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0150a">
+      <description>Error: xsl:stylesheet wrong namespace.
+Was error-code-039.
+A literal result element
+                     that is used as the outermost element of a simplified stylesheet module
+                        must have an xsl:version attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0150a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0150"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0150b">
+      <description>Error: xsl:include - target is not a stylesheet.
+Was error-code-097.
+A literal result element
+                     that is used as the outermost element of a simplified stylesheet module
+                        must have an xsl:version attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0150b.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0150"/>
+            <error code="XTSE0165"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0150c">
+      <description>Error: xsl:import - target is not a stylesheet.
+Was error-code-107.
+A literal result element
+                     that is used as the outermost element of a simplified stylesheet module
+                        must have an xsl:version attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0150c.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0150"/>
+            <error code="XTSE0165"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0150d">
+      <description>Generate error XTSE0150.
+Was error-code-213.
+A literal result element
+                     that is used as the outermost element of a simplified stylesheet module
+                        must have an xsl:version attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0150d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0150"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0150e">
+      <description>Generate error XTSE0165. Note this involves reading a document that is not a valid stylesheet module, so there will always be an alternative of reporting the error in that module, in this case XTSE0150..
+Was error-code-215.
+A literal result element
+                     that is used as the outermost element of a simplified stylesheet module
+                        must have an xsl:version attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0150e.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0165"/>
+            <error code="XTSE0150"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0160a">
+      <description>Error: It is a non-recoverable dynamic error if an element has an effective version of V (with
+                        V &lt; 3.0) when the implementation does not support
+                     backwards compatible behavior for XSLT version V.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+         <feature name="backwards_compatibility" satisfied="false"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0160a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0160"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165a">
+      <description>Error: xsl:include - file does not exist.
+Was error-code-090.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165b">
+      <description>Error: xsl:include - invalid URL.
+Was error-code-091.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165c">
+      <description>Error: xsl:include - target is not a stylesheet.
+Was error-code-097.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165c.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0150"/>
+            <error code="XTSE0165"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165d">
+      <description>Error: xsl:import - file does not exist.
+Was error-code-099.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165e">
+      <description>Error: xsl:import - invalid URL.
+Was error-code-100.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165e.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165f">
+      <description>Error: xsl:import - target is not a stylesheet.
+Was error-code-107.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165f.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0150"/>
+            <error code="XTSE0165"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165g">
+      <description>error in included stylesheet.
+Was error-code-173.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165g.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165h">
+      <description>Generate error XTSE0165.
+Was error-code-214.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165h.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0165"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0165i">
+      <description>Generate error XTSE0165. Note this involves reading a document that is not a valid stylesheet module, so there will always be an alternative of reporting the error in that module, in this case XTSE0150..
+Was error-code-215.
+It is a static error if the
+                        processor is not able to retrieve the resource identified by the URI
+                           reference in the href attribute of
+                              xsl:include or xsl:import
+                        , or if the resource that is retrieved does not contain a
+                        stylesheet module conforming to this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0165i.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0165"/>
+            <error code="XTSE0150"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0170a">
+      <description>Error: xsl:include - not top-level.
+Was error-code-093.
+An xsl:include element must be a
+                           top-level element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0170a.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0170"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0170b">
+      <description>Generate error XTSE0170.
+Was error-code-216.
+An xsl:include element must be a
+                           top-level element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0170b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0170"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180a">
+      <description>Error: xsl:include - self-referential.
+Was error-code-094.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2012-12-11" change="see bug 20179"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180b">
+      <description>Error: xsl:include - circular reference.
+Was error-code-095.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180c">
+      <description>Error: xsl:include - circular reference.
+Was error-code-096.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180d">
+      <description>Generate error XTSE0180.
+Was error-code-217.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180e">
+      <description>Generate error XTSE0180.
+Was error-code-218.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180e.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0180f">
+      <description>Generate error XTSE0180.
+Was error-code-219.
+It is a static error if a
+                        stylesheet module directly or indirectly includes itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0180f.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0180"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0190a">
+      <description>Error: xsl:import - not top-level.
+Was error-code-102.
+An xsl:import element must be a top-level element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0190a.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTSE0010"/>
+            <error code="XTSE0190"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0190b">
+      <description>Generate error XTSE0190.
+Was error-code-220.
+An xsl:import element must be a top-level element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0190b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0190"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0200a">
+      <description>Error: xsl:import - not first top-level element.
+Was error-code-106.
+The xsl:import element children must
+                        precede all other element children of an xsl:stylesheet
+                        element, including any xsl:include element children and any
+                           user-defined data elements.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2014-08-26" change="applies to XSLT 2.0 only"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0200a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0200"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0200b">
+      <description>Generate error XTSE0200.
+Was error-code-212.
+The xsl:import element children must
+                        precede all other element children of an xsl:stylesheet
+                        element, including any xsl:include element children and any
+                           user-defined data elements.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2014-08-26" change="applies to XSLT 2.0 only"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0200b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0200"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0200c">
+      <description>Generate error XTSE0200.
+Was error-code-221.
+The xsl:import element children must
+                        precede all other element children of an xsl:stylesheet
+                        element, including any xsl:include element children and any
+                           user-defined data elements.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2014-08-26" change="applies to XSLT 2.0 only"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0200c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0200"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210a">
+      <description>Error: xsl:import - self-referential.
+Was error-code-103.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210b">
+      <description>Error: xsl:import - circular reference.
+Was error-code-104.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210c">
+      <description>Error: xsl:import - circular reference.
+Was error-code-105.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210d">
+      <description>Generate error XTSE0210.
+Was error-code-222.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210e">
+      <description>Generate error XTSE0210.
+Was error-code-223.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210e.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0210f">
+      <description>Generate error XTSE0210.
+Was error-code-224.
+It is a static error if a
+                        stylesheet module directly or indirectly imports itself.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0210f.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0210"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0215a">
+      <description>Error: It is a static error if an
+                        xsl:import-schema element that contains an
+                        xs:schema element has a schema-location attribute,
+                     or if it has a namespace attribute that conflicts with the target
+                     namespace of the contained schema.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0215a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0215"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0215b">
+      <description>Error: It is a static error if an
+                        xsl:import-schema element that contains an
+                        xs:schema element has a schema-location attribute,
+                     or if it has a namespace attribute that conflicts with the target
+                     namespace of the contained schema.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0215b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0215"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0220a">
+      <description>Generate error XTSE0220.
+Was error-code-225.
+It is a static error if the synthetic
+                     schema document does not satisfy the constraints described in  (section 5.1, Errors in Schema Construction and
+                        Structure). This includes, without loss of generality, conflicts such
+                     as multiple definitions of the same name.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="schema_aware"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0220a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0220"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0260a">
+      <description>Error: xsl:include - non-empty element.
+Was error-code-092.
+Within an XSLT element that is
+                        required to be empty, any content other than comments or
+                     processing instructions, including any whitespace text node preserved using the
+                        xml:space="preserve" attribute, is a static error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0260a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0260"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0260b">
+      <description>Error: xsl:import - non-empty element.
+Was error-code-101.
+Within an XSLT element that is
+                        required to be empty, any content other than comments or
+                     processing instructions, including any whitespace text node preserved using the
+                        xml:space="preserve" attribute, is a static error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0260b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0260"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0260c">
+      <description>Generate error XTSE0260.
+Was error-code-226.
+Within an XSLT element that is
+                        required to be empty, any content other than comments or
+                     processing instructions, including any whitespace text node preserved using the
+                        xml:space="preserve" attribute, is a static error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0260c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0260"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0260d">
+      <description>Generate error XTSE0260.
+Was error-code-227.
+Within an XSLT element that is
+                        required to be empty, any content other than comments or
+                     processing instructions, including any whitespace text node preserved using the
+                        xml:space="preserve" attribute, is a static error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0260d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0260"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0265a">
+      <description>Generate error XTSE0265.
+Was error-code-228.
+ It is a static error if there is a
+                        stylesheet module in the
+                        stylesheet that specifies
+                        input-type-annotations="strip" and another stylesheet module that specifies
+                        input-type-annotations="preserve".</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0265a.xsl"/>
+         <stylesheet file="error-code-228a.xsl" role="secondary"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0265"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0270a">
+      <description>Generate error XTSE0270: two statically-conflicting strip-space/preserve-space declarations.
+Was error-code-229c.
+It 
+               is a static error if 
+               within any package
+               the same NameTest
+            appears in both an xsl:strip-space and an xsl:preserve-space
+               declaration if both have the same import
+               precedence. Two NameTests are considered the same if they match the same set of names
+               (which can be determined by comparing them after expanding namespace prefixes to URIs).</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0270a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0270"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280a">
+      <description>Error: xsl:apply-templates using undeclared prefix in mode name.
+Was error-code-045.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280b">
+      <description>Error: xsl:call-template using an undeclared namespace.
+Was error-code-052.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280c">
+      <description>Error: xsl:attribute-set - bad name.
+Was error-code-073.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280d">
+      <description>Error: xsl:template - undeclared prefix.
+Was error-code-113.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280e">
+      <description>Error: xsl:call-template - bad template name prefix.
+Was error-code-120.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280e.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0280f">
+      <description>Generate error XTSE0280.
+Was error-code-231.
+In the case of a prefixed lexical QName used as the
+                        value (or as part of the value) 
+                        of an attribute in the stylesheet,
+                        or appearing within an XPath expression
+                        in the stylesheet, it is a static
+                           error if the defining
+                              element has no namespace node whose name matches the prefix of the
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0280f.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0280"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0290a">
+      <description>Generate error XTDE1460.
+Was error-code-381.
+Where the result of evaluating an XPath expression (or an attribute value
+                        template) is required to be a lexical
+                           QName, or if it is permitted to be a
+                        lexical QName and the actual value
+                        takes the form of a lexical QName,
+                        then unless otherwise specified it is a non-recoverable dynamic error if the
+                        value has a prefix and the
+                        defining element has no
+                        namespace node whose name matches that prefix. This error
+                        may be signaled as a static error if the value of the expression can be determined
+                        statically.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0290a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <any-of>
+            <error code="XTDE0290"/>
+            <error code="XTDE1460"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0340a">
+      <description>Error: xsl:key - bad match attribute.
+Was error-code-085a.
+Where an attribute is defined to contain a pattern, it is a static
+                           error if the pattern does not match the production Pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+         <feature value="namespace_axis"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0340a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0340"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0340b">
+      <description>Error: xsl:template - bad pattern.
+Was error-code-110.
+Where an attribute is defined to contain a pattern, it is a static
+                           error if the pattern does not match the production Pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0340b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0340"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0340c">
+      <description>Test that PI names may NOT contain a colon (see Namespaces REC section 6).
+Was error-code-149.
+Where an attribute is defined to contain a pattern, it is a static
+                           error if the pattern does not match the production Pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0340c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0340"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0340d">
+      <description>Generate error XTSE0340.
+Was error-code-232.
+Where an attribute is defined to contain a pattern, it is a static
+                           error if the pattern does not match the production Pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0340d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0340"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0350a">
+      <description>unclosed expression in AVT.
+Was error-code-184.
+It is a static error if an unescaped
+                     left curly bracket appears in a fixed part of a content value template
+                     without a matching right curly bracket.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0350a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0350"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0350b">
+      <description>Generate error XTSE0350.
+Was error-code-233.
+It is a static error if an unescaped
+                     left curly bracket appears in a fixed part of a content value template
+                     without a matching right curly bracket.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0350b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0350"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0370a">
+      <description>Generate error XTSE0370.
+Was error-code-234.
+It is a static error if an unescaped
+                     right curly bracket occurs in a fixed part of a content value template.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0370a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0370"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0410a">
+      <description>Generate error XTDE0410.
+Was error-code-235.
+It is a non-recoverable dynamic
+                                 error if the result sequence used to construct the
+                              content of an element node contains a namespace node or attribute node
+                              that is preceded in the sequence by a node that is neither a namespace
+                              node nor an attribute node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0410a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0410"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0420a">
+      <description>this succeeds in 1.0, with top-down construction, but is should fail in 2.0 with bottom up construction. Note that the xsl:copy is copying a document node which can't have an attribute..
+Was error-code-187.
+It is a non-recoverable dynamic
+                                 error if the result sequence used to construct the
+                              content of a document node contains a namespace node or attribute
+                              node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0420a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0420"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0420b">
+      <description>Generate error XTDE0420.
+Was error-code-236.
+It is a non-recoverable dynamic
+                                 error if the result sequence used to construct the
+                              content of a document node contains a namespace node or attribute
+                              node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0420b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0420"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0430a">
+      <description>Generate error XTDE0430.
+Was error-code-237.
+It is a non-recoverable dynamic
+                                 error if the result sequence contains two or more
+                              namespace nodes having the same name but different string values (that is, namespace
+                              nodes that map the same prefix to different namespace URIs).</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0430a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0430"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0440a">
+      <description>TEST xsl:namespace declaring the default namespace (XSLT 2.0) this is an error if the element is in no namespace.
+Was error-code-019.
+It is a non-recoverable dynamic
+                                 error if the result sequence contains a namespace node
+                              with no name and the element node being constructed has a null
+                              namespace URI (that is, it is an error to define a default namespace
+                              when the element is in no namespace). </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0440a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0440"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0440b">
+      <description>Generate error XTDE0440.
+Was error-code-238.
+It is a non-recoverable dynamic
+                                 error if the result sequence contains a namespace node
+                              with no name and the element node being constructed has a null
+                              namespace URI (that is, it is an error to define a default namespace
+                              when the element is in no namespace). </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0440b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0440"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0450a">
+      <description>Error: It is a non-recoverable dynamic
+                                 error if the result sequence contains a function item.
+                           </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0450a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0450"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0500a">
+      <description>Error: xsl:template - no match or name.
+Was error-code-108.
+An xsl:template element must have either a
+                        match attribute or a name attribute, or both. An
+                        xsl:template element that has no match
+                     attribute must have no mode attribute and no
+                        priority attribute. An xsl:template
+                        element that has no name attribute must have no visibility
+                        attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0500a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0500"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0500b">
+      <description>Generate error XTSE0500.
+Was error-code-240.
+An xsl:template element must have either a
+                        match attribute or a name attribute, or both. An
+                        xsl:template element that has no match
+                     attribute must have no mode attribute and no
+                        priority attribute. An xsl:template
+                        element that has no name attribute must have no visibility
+                        attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0500b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0500"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0500c">
+      <description>Generate error XTSE0500.
+Was error-code-241.
+An xsl:template element must have either a
+                        match attribute or a name attribute, or both. An
+                        xsl:template element that has no match
+                     attribute must have no mode attribute and no
+                        priority attribute. An xsl:template
+                        element that has no name attribute must have no visibility
+                        attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0500c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0500"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0500d">
+      <description>Generate error XTSE0500.
+Was error-code-242.
+An xsl:template element must have either a
+                        match attribute or a name attribute, or both. An
+                        xsl:template element that has no match
+                     attribute must have no mode attribute and no
+                        priority attribute. An xsl:template
+                        element that has no name attribute must have no visibility
+                        attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0500d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0500"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0505a">
+      <description>Error: It is a type error if the result of
+                     evaluating the sequence
+                        constructor cannot be converted to the required type.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0505a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0505"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0510a">
+      <description>Generate error XTTE0510.
+Was error-code-243.
+It is a type error if an
+                        xsl:apply-templates instruction with no select
+                     attribute is evaluated when the context
+                        item is not a node. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0510a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0510"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0520a">
+      <description>Error: xsl:apply-templates (select att must be a node()*).
+Was error-code-044.
+It is a type error if the sequence
+                     returned by the select expression of
+                           xsl:apply-templates
+                      contains an item that is not a node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0520a.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0520"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0520b">
+      <description>Error: xsl:apply-templates - node a node-set.
+Was error-code-130.
+It is a type error if the sequence
+                     returned by the select expression of
+                           xsl:apply-templates
+                      contains an item that is not a node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0520b.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0520"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0520c">
+      <description>"." used when not a node - static error even though never executed.
+Was error-code-181.
+It is a type error if the sequence
+                     returned by the select expression of
+                           xsl:apply-templates
+                      contains an item that is not a node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0520c.xsl"/>
+      </test>
+      <result>
+         <any-of>
+            <assert-xml>&lt;a&gt;***** error not detected! *****&lt;/a&gt;</assert-xml>
+            <error code="XTTE0520"/>
+         </any-of>
+      </result>
+   </test-case>
+
+   <test-case name="error-0520d">
+      <description>Generate error XTTE0520.
+Was error-code-244.
+It is a type error if the sequence
+                     returned by the select expression of
+                           xsl:apply-templates
+                      contains an item that is not a node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0520d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0520"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0530a">
+      <description>Generate error XTSE0530. Was error-code-245.
+                    The value of the priority attribute of the
+                    xsl:template element must conform to the rules for the
+                    xs:decimal type defined in [...].
+                    Negative values are permitted.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0530a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0530"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0540a">
+      <description>Error: It is a non-recoverable
+                    dynamic error if the conflict resolution algorithm for
+                    template rules leaves more than one matching template rule  
+                    when the declaration of the relevant mode has an
+                    on-multiple-match attribute with the value fail.
+      </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0540a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0540"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0545a">
+      <description>Error: It is a static error if for any named or unnamed mode, a package explicitly specifies 
+        two conflicting values for the same attribute in different xsl:mode declarations having the same import 
+        precedence, unless there is another definition of the same attribute with higher import precedence. 
+        The attributes in question are the attributes other than name on the xsl:mode element.
+      </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0545a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0545"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0545b">
+      <description>Error: It is a static error if for any named or unnamed mode, a package explicitly specifies 
+        two conflicting values for the same attribute in different xsl:mode declarations having the same import 
+        precedence, unless there is another definition of the same attribute with higher import precedence. 
+        The attributes in question are the attributes other than name on the xsl:mode element.
+      </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0545b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0545"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550a">
+      <description>Error: xsl:template - bad mode name. Was error-code-118.
+                        It is a static error if the list
+                        of modes in the mode attribute of xsl:template
+                        is empty, if the same token is included more than once in the
+                        list, if the list contains an invalid token, or if the token
+                        #all appears together with any other value.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550b">
+      <description>Generate error XTSE0550. Was error-code-247.
+                        It is a static error if the list
+                        of modes in the mode attribute of xsl:template
+                        is empty, if the same token is included more than once in the
+                        list, if the list contains an invalid token, or if the token
+                        #all appears together with any other value.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550c">
+      <description>Generate error XTSE0550. Was error-code-248.
+                        It is a static error if the list
+                        of modes in the mode attribute of xsl:template
+                        is empty, if the same token is included more than once in the
+                        list, if the list contains an invalid token, or if the token
+                        #all appears together with any other value.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550d">
+      <description>Generate error XTSE0550. Was error-code-249.
+                    It is a static error if the list
+                    of modes in the mode attribute of xsl:template
+                    is empty, if the same token is included more than once in the
+                    list, if the list contains an invalid token, or if the token
+                    #all appears together with any other value.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550e">
+      <description>Generate error XTSE0550. Was error-code-250.
+                    It is a static error if the list
+                    of modes in the mode attribute of xsl:template
+                    is empty, if the same token is included more than once in the
+                    list, if the list contains an invalid token, or if the token
+                    #all appears together with any other value.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550e.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0550f">
+      <description>Generate error XTSE0550. Was error-code-251.
+                    It is a static error if the list
+                    of modes in the mode attribute of xsl:template
+                    is empty, if the same token is included more than once in the
+                    list, if the list contains an invalid token, or if the token
+                    #all appears together with any other value.
+      </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0550f.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0550"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0555a">
+      <description>Error: It is a non-recoverable dynamic
+                           error if xsl:apply-templates,
+                           xsl:apply-imports or xsl:next-match is
+                        used to process a node using a mode whose declaration specifies
+                           on-no-match="fail" when there is no template rule in the stylesheet whose
+                        match pattern matches that node. </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0555a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0555"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0555b">
+      <description>Error: It is a non-recoverable dynamic
+                           error if xsl:apply-templates,
+                           xsl:apply-imports or xsl:next-match is
+                        used to process a node using a mode whose declaration specifies
+                           on-no-match="fail" when there is no template rule in the stylesheet whose
+                        match pattern matches that node. </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0555b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0555"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0555c">
+      <description>Error: It is a non-recoverable dynamic
+                           error if xsl:apply-templates,
+                           xsl:apply-imports or xsl:next-match is
+                        used to process a node using a mode whose declaration specifies
+                           on-no-match="fail" when there is no template rule in the stylesheet whose
+                        match pattern matches that node. </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0555c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0555"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0560a">
+      <description>Error: Calling xsl:apply-imports when the current template rule is null.
+Was error-code-032.
+It is a non-recoverable dynamic
+                        error if xsl:apply-imports or
+                        xsl:next-match is evaluated when the current template rule is 
+                     absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0560a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0560"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0560b">
+      <description>Error: Calling xsl:apply-imports when evaluating a global variable.
+Was error-code-033.
+It is a non-recoverable dynamic
+                        error if xsl:apply-imports or
+                        xsl:next-match is evaluated when the current template rule is 
+                     absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0560b.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0560"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0560c">
+      <description>Generate error XTDE0560.
+Was error-code-252.
+It is a non-recoverable dynamic
+                        error if xsl:apply-imports or
+                        xsl:next-match is evaluated when the current template rule is 
+                     absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0560c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0560"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0560d">
+      <description>Generate error XTRE1500.
+Was error-code-253.
+It is a non-recoverable dynamic
+                        error if xsl:apply-imports or
+                        xsl:next-match is evaluated when the current template rule is 
+                     absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0560d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0560"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0570a">
+      <description>Test declaring a variable with incorrect type "element/attribute of type X"..
+Was error-code-007.
+It is a type error if the supplied value of a variable cannot be
+                     converted to the required type.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="schema_aware"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0570a.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0570"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0570b">
+      <description>Test declaring a variable with incorrect type "element/attribute of type X"..
+Was error-code-011.
+It is a type error if the supplied value of a variable cannot be
+                     converted to the required type.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="schema_aware"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0570b.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0570"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0570c">
+      <description>type-check contents of a template rule against the type of the context item (could be detected statically by inference from the match pattern, but dynamic reporting is also allowed).
+Was error-code-198.
+It is a type error if the supplied value of a variable cannot be
+                     converted to the required type.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0570c.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0570"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0570d">
+      <description>Generate error XTTE0570.
+Was error-code-254.
+It is a type error if the supplied value of a variable cannot be
+                     converted to the required type.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0570d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0570"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0580a">
+      <description>Generate error XTSE0580.
+Was error-code-255.
+It is a static error if the values of
+                     the name attribute of two sibling
+                           xsl:param elements represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0580a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0580"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0580b">
+      <description>Generate error XTSE0580.
+Was error-code-256.
+It is a static error if the values of
+                     the name attribute of two sibling
+                           xsl:param elements represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0580b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0580"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0590a">
+      <description>Generate error XTTE0590.
+Was error-code-257.
+It is a type error if the conversion of
+                     the supplied value of a parameter to
+                     its required type fails.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0590a.xsl"/>
+      </test>
+      <result>
+         <error code="XTTE0590"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0600a">
+      <description>Generate error XTTE0600.
+Was error-code-258.
+If a default value is given explicitly, that is, if there is either a
+                        select attribute or a non-empty sequence constructor, then it is a
+                        type error if the default value
+                     cannot be converted to the required type, using the function conversion rules.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0600a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0600"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0610a">
+      <description>Generate error XTDE0610.
+Was error-code-259.
+If an optional parameter has no select attribute and has an empty
+                        sequence constructor, and
+                     if there is an as attribute, then the default value of the
+                     parameter is an empty sequence. If the empty sequence is not a valid instance
+                     of the required type defined in the as attribute, then the
+                     parameter is treated as a required parameter, which means that it is a non-recoverable dynamic error if the
+                     caller supplies no value for the parameter.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0610a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0610"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0610b">
+      <description>Generate error XTDE0610 for a global parameter.
+Was error-code-410.
+If an optional parameter has no select attribute and has an empty
+                        sequence constructor, and
+                     if there is an as attribute, then the default value of the
+                     parameter is an empty sequence. If the empty sequence is not a valid instance
+                     of the required type defined in the as attribute, then the
+                     parameter is treated as a required parameter, which means that it is a non-recoverable dynamic error if the
+                     caller supplies no value for the parameter.</description>
+      <created by="Colin Adams" on="2012-11-07"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0610b.xsl"/>
+         <initial-template name="initial"/>
+      </test>
+      <result>
+         <error code="XTDE0610"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0620a">
+      <description>Error: xsl:variable - select attribute plus content.
+Was error-code-141.
+It is a static error if a variable-binding element has a
+                        select attribute and has non-empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0620a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0620"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0620b">
+      <description>Generate error XTSE0620.
+Was error-code-260.
+It is a static error if a variable-binding element has a
+                        select attribute and has non-empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0620b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0620"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0630a">
+      <description>Error: xsl:variable - duplicate name.
+Was error-code-139.
+It is a static error if a stylesheet contains more than one binding of a
+                     global variable with the same name and same import precedence, unless it also contains another binding with
+                     the same name and higher import precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0630a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0630"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0630b">
+      <description>Error: xsl:variable - duplicate name.
+Was error-code-150.
+It is a static error if a stylesheet contains more than one binding of a
+                     global variable with the same name and same import precedence, unless it also contains another binding with
+                     the same name and higher import precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0630b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0630"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0630c">
+      <description>Generate error XTSE0630.
+Was error-code-261.
+It is a static error if a stylesheet contains more than one binding of a
+                     global variable with the same name and same import precedence, unless it also contains another binding with
+                     the same name and higher import precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0630c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0630"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640a">
+      <description>Error: xsl:key - circular key reference.
+Was error-code-086.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640b">
+      <description>Error: xsl:variable - self-reference.
+Was error-code-145.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640b.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640c">
+      <description>Error: xsl:variable - circular reference.
+Was error-code-146.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640c.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640d">
+      <description>Test use of a variable within a pattern causing a circularity (XSLT 2.0).
+Was error-code-194.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment>
+         <source role=".">
+            <content><![CDATA[<doc><param id="1"/><param id="2"/></doc>]]></content>
+         </source>
+      </environment>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640d.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640e">
+      <description>Test use of variables in a key match pattern (XSLT 2.0) causing a circularity.
+      Result disputed for XSLT 3.0: see bug 26543.
+Was error-code-195.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error214"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640e.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640f">
+      <description>Test use of variables in a key use expression (XSLT 2.0) causing a circularity.
+Was error-code-196.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error214"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640f.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640g">
+      <description>Test use of key() in a key use expression (XSLT 2.0) with circular definitions.
+Was error-code-197.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error214"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640g.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0640h">
+      <description>Generate error XTDE0640.
+Was error-code-262.
+In general, a circularity in a stylesheet is a non-recoverable dynamic error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0640h.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0640"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0650a">
+      <description>Error: xsl:call-template.
+Was error-code-049.
+It is a static error if a stylesheet contains an
+                        xsl:call-template instruction whose name
+                     attribute does not match the name attribute of any
+                        named template 
+                           visible in the containing package 
+                           (this includes any template defined in this package, as well as templates
+                           accepted from used packages whose visibility in this package
+                           is not hidden). For more details of the
+                  process of binding the called template, see .</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0650a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0650"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0650b">
+      <description>Error: xsl:call-template - unknown template name.
+Was error-code-121.
+It is a static error if a stylesheet contains an
+                        xsl:call-template instruction whose name
+                     attribute does not match the name attribute of any
+                        named template 
+                           visible in the containing package 
+                           (this includes any template defined in this package, as well as templates
+                           accepted from used packages whose visibility in this package
+                           is not hidden). For more details of the
+                  process of binding the called template, see .</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0650b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0650"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0650c">
+      <description>Generate error XTSE0650.
+Was error-code-263.
+It is a static error if a stylesheet contains an
+                        xsl:call-template instruction whose name
+                     attribute does not match the name attribute of any
+                        named template 
+                           visible in the containing package 
+                           (this includes any template defined in this package, as well as templates
+                           accepted from used packages whose visibility in this package
+                           is not hidden). For more details of the
+                  process of binding the called template, see .</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0650c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0650"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0660a">
+      <description>Error: xsl:template - duplicate name.
+Was error-code-034.
+It is a static error if a  
+                        package contains more than one template with the same name and the same
+                        import precedence, unless it
+                     also contains a template with the same
+                     name and higher import
+                     precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0660a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0660"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0660b">
+      <description>Error: xsl:template - duplicate name.
+Was error-code-114.
+It is a static error if a  
+                        package contains more than one template with the same name and the same
+                        import precedence, unless it
+                     also contains a template with the same
+                     name and higher import
+                     precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0660b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0660"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0660c">
+      <description>Error: xsl:template - duplicate name.
+Was error-code-115.
+It is a static error if a  
+                        package contains more than one template with the same name and the same
+                        import precedence, unless it
+                     also contains a template with the same
+                     name and higher import
+                     precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0660c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0660"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0660d">
+      <description>Generate error XTSE0660.
+Was error-code-264.
+It is a static error if a  
+                        package contains more than one template with the same name and the same
+                        import precedence, unless it
+                     also contains a template with the same
+                     name and higher import
+                     precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0660d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0660"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0670a">
+      <description>Error: xsl:call-template - duplicate parameters.
+Was error-code-126.
+It is a static error
+                     if two or more sibling xsl:with-param elements have
+                        name attributes that represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0670a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0670"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0670b">
+      <description>Error: xsl:call-template - duplicate parameters.
+Was error-code-127.
+It is a static error
+                     if two or more sibling xsl:with-param elements have
+                        name attributes that represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0670b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0670"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0670c">
+      <description>Error: xsl:apply-templates - duplicate params.
+Was error-code-133.
+It is a static error
+                     if two or more sibling xsl:with-param elements have
+                        name attributes that represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0670c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0670"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0670d">
+      <description>Generate error XTSE0670.
+Was error-code-265.
+It is a static error
+                     if two or more sibling xsl:with-param elements have
+                        name attributes that represent the same expanded QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0670d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0670"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0680a">
+      <description>Generate error XTSE0680.
+Was error-code-266.
+In the case of xsl:call-template, it is a static error to pass a non-tunnel
+                        parameter named x to a template that does not have a 
+                        non-tunnel template parameter named
+                           x, unless the
+                              xsl:call-template instruction is processed with
+                              XSLT 1.0
+                           behavior.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0680a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0680"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0690a">
+      <description>Generate error XTSE0690.
+Was error-code-267.
+It is a static error if a template
+                        that is invoked using xsl:call-template declares a template parameter specifying
+                           required="yes" and not specifying tunnel="yes",
+                        if no value for this parameter is supplied by the calling
+                           xsl:call-template instruction.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0690a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0690"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0700a">
+      <description>Generate error XTDE0700.
+Was error-code-268.
+It is a non-recoverable dynamic
+                        error if a template that is invoked using
+                        xsl:apply-templates, xsl:apply-imports, or
+                        xsl:next-match declares a template parameter with
+                        required="yes" and no value for this parameter is supplied by
+                     the calling instruction. The same error is reported in the case of a tunnel parameter whether invoked using one of these three
+                     instructions or by xsl:call-template, as explained in .</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0700a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0700"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0700b">
+      <description>Generate error XTDE0060.
+        Was error-code-204.
+        It is a non-recoverable dynamic error if the initial
+        template defines a template parameter that specifies required="yes"
+        and no value is supplied.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <changed by="Michael Kay"
+               on="2014-08-26"
+               change="Error 0060 replaced by 0700 in XSLT 3.0"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0060a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0700"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0710a">
+      <description>Error: reference to undeclared xsl:attribute-set.
+Was error-code-079.
+It is a static error if the value of
+                     the use-attribute-sets attribute of an xsl:copy,
+                        xsl:element, or xsl:attribute-set element,
+                     or the xsl:use-attribute-sets attribute of a literal result element, is not a
+                     whitespace-separated sequence of EQNames, or
+                     if it contains a QName that does not match the name attribute of
+                     any xsl:attribute-set declaration in the stylesheet.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0710a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0710"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0710b">
+      <description>Error: reference to unknown xsl:attribute-set.
+Was error-code-082.
+It is a static error if the value of
+                     the use-attribute-sets attribute of an xsl:copy,
+                        xsl:element, or xsl:attribute-set element,
+                     or the xsl:use-attribute-sets attribute of a literal result element, is not a
+                     whitespace-separated sequence of EQNames, or
+                     if it contains a QName that does not match the name attribute of
+                     any xsl:attribute-set declaration in the stylesheet.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0710b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0710"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0710c">
+      <description>Generate error XTSE0710.
+Was error-code-269.
+It is a static error if the value of
+                     the use-attribute-sets attribute of an xsl:copy,
+                        xsl:element, or xsl:attribute-set element,
+                     or the xsl:use-attribute-sets attribute of a literal result element, is not a
+                     whitespace-separated sequence of EQNames, or
+                     if it contains a QName that does not match the name attribute of
+                     any xsl:attribute-set declaration in the stylesheet.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0710c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0710"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0710d">
+      <description>Generate error XTSE0710.
+Was error-code-270.
+It is a static error if the value of
+                     the use-attribute-sets attribute of an xsl:copy,
+                        xsl:element, or xsl:attribute-set element,
+                     or the xsl:use-attribute-sets attribute of a literal result element, is not a
+                     whitespace-separated sequence of EQNames, or
+                     if it contains a QName that does not match the name attribute of
+                     any xsl:attribute-set declaration in the stylesheet.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0710d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0710"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0720a">
+      <description>Error: circular reference to xsl:attribute-set.
+Was error-code-080.
+It is a static error if an
+                        xsl:attribute-set element directly or indirectly references
+                     itself via the names contained in the use-attribute-sets
+                     attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0720a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0720"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0720b">
+      <description>Error: circular reference to xsl:attribute-set.
+Was error-code-081.
+It is a static error if an
+                        xsl:attribute-set element directly or indirectly references
+                     itself via the names contained in the use-attribute-sets
+                     attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0720b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0720"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0720c">
+      <description>Generate error XTSE0720.
+Was error-code-271.
+It is a static error if an
+                        xsl:attribute-set element directly or indirectly references
+                     itself via the names contained in the use-attribute-sets
+                     attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0720c.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0720"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0720d">
+      <description>Generate error XTSE0720.
+Was error-code-272.
+It is a static error if an
+                        xsl:attribute-set element directly or indirectly references
+                     itself via the names contained in the use-attribute-sets
+                     attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0720d.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0720"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0730a">
+      <description>Error: If an xsl:attribute set element specifies streamable="yes" then every attribute set referenced in its
+                  use-attribute-sets attribute (if present) must also specify streamable="yes".</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0730a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0730"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0740a">
+      <description>Generate error XTSE0740.
+Was error-code-273.
+It is a static error if
+                     a stylesheet function
+                     has a name that is in no namespace.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0740a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0740"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0760a">
+      <description>Generate error XTSE0760.
+Was error-code-274.
+Because arguments to a stylesheet function call must all be
+                        specified, the xsl:param elements within an
+                        xsl:function element must not specify a
+                        default value: this means they must be empty, and
+                        must not have a select attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0760a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0760"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0760b">
+      <description>Generate error XTSE0760.
+Was error-code-275.
+Because arguments to a stylesheet function call must all be
+                        specified, the xsl:param elements within an
+                        xsl:function element must not specify a
+                        default value: this means they must be empty, and
+                        must not have a select attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0760b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0760"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0770a">
+      <description>Generate error XTSE0770.
+Was error-code-276.
+It is a static error for a stylesheet to contain two or more functions
+                     with the same expanded QName, the
+                     same arity, and the same import precedence, unless there is
+                     another function with the same expanded QName and arity, and a higher import precedence.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0770a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0770"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0780a">
+      <description>Generate error XTTE0780.
+Was error-code-277.
+If the as attribute of xsl:function
+                      is specified, then the result evaluated by the sequence constructor (see ) is converted to the required type, using the
+                        function conversion
+                           rules. It is a type error
+                        if this conversion fails.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0780a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0780"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0790a">
+      <description>Generate error XTTE0790.
+Was error-code-278.
+If the value of a parameter to a stylesheet function cannot be converted to the required type, a
+                        type error is signaled.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0790a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0790"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0805a">
+      <description>Generate error XTSE0805.
+Was error-code-279.
+It is a static error if an
+                        attribute on a literal result element is in the XSLT namespace, unless it is one of the
+                        attributes explicitly defined in this specification.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0805a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0805"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0808a">
+      <description>Error: xsl:stylesheet erp attribute.
+Was error-code-037.
+It is a static error if a
+                              namespace prefix is used within the
+                                 [xsl:]exclude-result-prefixes attribute and there is
+                              no namespace binding in scope for that prefix.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0808a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0808"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0808b">
+      <description>Error: xsl:stylesheet erp attribute.
+Was error-code-038.
+It is a static error if a
+                              namespace prefix is used within the
+                                 [xsl:]exclude-result-prefixes attribute and there is
+                              no namespace binding in scope for that prefix.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0808b.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0808"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0808c">
+      <description>Generate error XTSE0808.
+Was error-code-280.
+It is a static error if a
+                              namespace prefix is used within the
+                                 [xsl:]exclude-result-prefixes attribute and there is
+                              no namespace binding in scope for that prefix.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0808c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0808"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0809a">
+      <description>Generate error XTSE0809.
+Was error-code-281.
+It is a static error if the
+                              value #default is used within the
+                                 [xsl:]exclude-result-prefixes attribute and the parent
+                              element of the [xsl:]exclude-result-prefixes attribute
+                              has no default namespace.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0809a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0809"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0810a">
+      <description>TEST conflicting xsl:namespace declarations.
+Was error-code-190.
+It is a static error if 
+                        within a package there is
+                        more than one such declaration more than one
+                              xsl:namespace-alias declaration with
+                        the same literal namespace
+                           URI and the same import
+                           precedence and different values for the target namespace URI, unless
+                        there is also an xsl:namespace-alias declaration with the
+                        same literal namespace URI
+                        and a higher import precedence. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0810a.xsl"/>
+      </test>
+      <result>
+         <error code="XTSE0810"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0810b">
+      <description>Generate error XTSE0810.
+Was error-code-282.
+It is a static error if 
+                        within a package there is
+                        more than one such declaration more than one
+                              xsl:namespace-alias declaration with
+                        the same literal namespace
+                           URI and the same import
+                           precedence and different values for the target namespace URI, unless
+                        there is also an xsl:namespace-alias declaration with the
+                        same literal namespace URI
+                        and a higher import precedence. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0810b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0810"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0812a">
+      <description>Generate error XTSE0812.
+Was error-code-283.
+It is a static error if a value
+                        other than #default is specified for either the
+                           stylesheet-prefix or the result-prefix
+                        attributes of the xsl:namespace-alias element when there is
+                        no in-scope binding for that namespace prefix.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0812a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0812"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0820a">
+      <description>Error: xsl:element bad element name (this was a recoverable error).
+Was error-code-066.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:element instruction is not a lexical QName. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0820a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0820"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0820b">
+      <description>Error: xsl:element - bad prefix in QName.
+Was error-code-068.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:element instruction is not a lexical QName. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0820b.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0820"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0820c">
+      <description>Generate error XTDE0820.
+Was error-code-284.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:element instruction is not a lexical QName. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0820c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0820"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0830a">
+      <description>Error: xsl:element.
+Was error-code-067.
+In the case of an xsl:element instruction with no
+                        namespace attribute, it is a non-recoverable dynamic error if the
+                        effective value of the
+                        name attribute is a lexical QName
+                     whose prefix is not declared in an in-scope namespace declaration for the
+                        xsl:element instruction.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0830a.xsl"/>
+      </test>
+      <result>
+         <error code="XTDE0830"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0830b">
+      <description>Generate error XTDE0830.
+Was error-code-285.
+In the case of an xsl:element instruction with no
+                        namespace attribute, it is a non-recoverable dynamic error if the
+                        effective value of the
+                        name attribute is a lexical QName
+                     whose prefix is not declared in an in-scope namespace declaration for the
+                        xsl:element instruction.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0830b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0830"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0835a">
+      <description>Generate error XTDE0835.
+Was error-code-286.
+ It is a non-recoverable dynamic
+                        error if the effective
+                        value of the namespace attribute of the
+                           xsl:element instruction is not in the
+                     lexical space of the xs:anyURI datatype or if it is the string
+                        http://www.w3.org/2000/xmlns/.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0835a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0835"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0840a">
+      <description>Generate error XTSE0840.
+Was error-code-287.
+It is a static error if the
+                        select attribute of the xsl:attribute element
+                     is present unless the element has empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0840a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0840"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0850a">
+      <description>Generate error XTDE0850.
+Was error-code-288.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of an
+                           xsl:attribute instruction is not a
+                        lexical QName.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0850a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0850"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0855a">
+      <description>Generate error XTDE0855.
+Was error-code-289.
+In the case of an xsl:attribute instruction with no
+                        namespace attribute, it is a non-recoverable dynamic error if the
+                        effective value of the
+                        name attribute is the string xmlns.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0855a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0855"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0860a">
+      <description>Generate error XTDE0860.
+Was error-code-290.
+In the case of an xsl:attribute instruction with no
+                        namespace attribute, it is a non-recoverable dynamic error if the
+                        effective value of the
+                        name attribute is a lexical
+                        QName whose prefix is not declared in an in-scope namespace
+                     declaration for the xsl:attribute instruction.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0860a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0860"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0865a">
+      <description>Generate error XTDE0865.
+Was error-code-291.
+ It is a non-recoverable dynamic
+                        error if the effective
+                        value of the namespace attribute of the
+                           xsl:attribute instruction is not in the
+                     lexical space of the xs:anyURI datatype or if it is the string
+                        http://www.w3.org/2000/xmlns/.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0865a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0865"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0870a">
+      <description>Generate error XTSE0870.
+Was error-code-292.
+It is a static error if the
+                           select attribute of the xsl:value-of
+                        element is present when the content of the element is non-empty, or if the
+                           select attribute is absent when the content is empty.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0870a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0870"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0880a">
+      <description>Generate error XTSE0880.
+Was error-code-293.
+It is a static error if the
+                        select attribute of the
+                        xsl:processing-instruction element is present unless the
+                     element has empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0880a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0880"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0890a">
+      <description>Generate error XTDE0890.
+Was error-code-294.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:processing-instruction instruction is
+                     not both an NCName and a PITarget.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0890a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0890"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0890b">
+      <description>Generate error XTDE0890.
+Was error-code-295.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:processing-instruction instruction is
+                     not both an NCName and a PITarget.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0890b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0890"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0905a">
+      <description>Generate error XTDE0905.
+Was error-code-296.
+It is a non-recoverable dynamic
+                     error if the string value of the new namespace
+                     node is not valid in the lexical space of the datatype xs:anyURI,
+                     or if it is the string http://www.w3.org/2000/xmlns/.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0905a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0905"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0910a">
+      <description>Generate error XTSE0910.
+Was error-code-297.
+It is a static error if the
+                        select attribute of the xsl:namespace element
+                     is present when the element has content other than one or more
+                        xsl:fallback instructions, or if the select
+                     attribute is absent when the element has empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0910a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0910"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0920a">
+      <description>Generate error XTDE0920.
+Was error-code-298.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:namespace instruction is neither a
+                     zero-length string nor an NCName, or if
+                     it is xmlns. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0920a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0920"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0920b">
+      <description>Generate error XTDE0920.
+Was error-code-299.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the name attribute of the
+                           xsl:namespace instruction is neither a
+                     zero-length string nor an NCName, or if
+                     it is xmlns. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0920b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0920"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0925a">
+      <description>Generate error XTDE0925.
+Was error-code-300.
+It is a non-recoverable dynamic
+                        error if the xsl:namespace instruction generates
+                     a namespace node whose name is xml and whose string value is not
+                        http://www.w3.org/XML/1998/namespace, or a namespace node whose
+                     string value is http://www.w3.org/XML/1998/namespace and whose
+                     name is not xml.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0925a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0925"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0925b">
+      <description>Generate error XTDE0925.
+Was error-code-301.
+It is a non-recoverable dynamic
+                        error if the xsl:namespace instruction generates
+                     a namespace node whose name is xml and whose string value is not
+                        http://www.w3.org/XML/1998/namespace, or a namespace node whose
+                     string value is http://www.w3.org/XML/1998/namespace and whose
+                     name is not xml.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0925b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0925"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0930a">
+      <description>Generate error XTDE0930.
+Was error-code-302.
+It is a non-recoverable dynamic
+                        error if evaluating the select attribute or the
+                     contained sequence constructor
+                     of an xsl:namespace instruction results in a zero-length
+                     string. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0930a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0930"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0940a">
+      <description>Generate error XTSE0940.
+Was error-code-303.
+It is a static error if the
+                        select attribute of the xsl:comment element is
+                     present unless the element has empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0940a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0940"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0945a">
+      <description>Error: It is a type error
+                        to use the xsl:copy instruction with no select attribute when the context item is absent.
+                     </description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0945a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0945"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0950a">
+      <description>Generate error XTTE0950.
+Was error-code-304.
+It is a type error to use the
+                           xsl:copy or xsl:copy-of instruction to
+                        copy a node that has namespace-sensitive content if the
+                           copy-namespaces attribute has the value no and
+                        its explicit or implicit validation attribute has the value
+                           preserve. It is also a type error if either of these
+                        instructions (with validation="preserve") is used to copy an
+                        attribute having namespace-sensitive content, unless the parent element is
+                        also copied. A node has namespace-sensitive content if its typed value
+                        contains an item of type xs:QName or xs:NOTATION
+                        or a type derived therefrom. The reason this is an error is because the
+                        validity of the content depends on the namespace context being
+                        preserved.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="schema_aware"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0950a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0950"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0950b">
+      <description>Generate error XTTE0950.
+Was error-code-305.
+It is a type error to use the
+                           xsl:copy or xsl:copy-of instruction to
+                        copy a node that has namespace-sensitive content if the
+                           copy-namespaces attribute has the value no and
+                        its explicit or implicit validation attribute has the value
+                           preserve. It is also a type error if either of these
+                        instructions (with validation="preserve") is used to copy an
+                        attribute having namespace-sensitive content, unless the parent element is
+                        also copied. A node has namespace-sensitive content if its typed value
+                        contains an item of type xs:QName or xs:NOTATION
+                        or a type derived therefrom. The reason this is an error is because the
+                        validity of the content depends on the namespace context being
+                        preserved.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+         <feature value="schema_aware"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0950b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0950"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0975a">
+      <description>Generate error XTSE0975.
+Was error-code-306.
+It is a static error if the
+                     value attribute of xsl:number is present unless
+                  the select, level, count, and
+                     from attributes are all absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0975a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0975"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0975b">
+      <description>Generate error XTSE0975.
+Was error-code-307.
+It is a static error if the
+                     value attribute of xsl:number is present unless
+                  the select, level, count, and
+                     from attributes are all absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0975b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0975"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0975c">
+      <description>Generate error XTSE0975.
+Was error-code-308.
+It is a static error if the
+                     value attribute of xsl:number is present unless
+                  the select, level, count, and
+                     from attributes are all absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0975c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0975"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0975d">
+      <description>Generate error XTSE0975.
+Was error-code-309.
+It is a static error if the
+                     value attribute of xsl:number is present unless
+                  the select, level, count, and
+                     from attributes are all absent.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0975d.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE0975"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0980a">
+      <description>Generate error XTDE0980.
+Was error-code-310.
+It is a non-recoverable dynamic
+                        error if any undiscarded item in the atomized sequence supplied as
+                     the value of the value attribute of xsl:number
+                     cannot be converted to an integer, or if the resulting integer is less than 0
+                     (zero). </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0980a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE0980"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-0990a">
+      <description>Generate error XTTE0990.
+Was error-code-311.
+It is a type error if the
+                        xsl:number instruction is evaluated, with no
+                        value or select attribute, when the context item is not a node. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-0990a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE0990"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1000a">
+      <description>Generate error XTTE1000.
+Was error-code-312.
+It is a type error if the result of
+                     evaluating the select attribute of the xsl:number
+                     instruction is anything other than a single node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1000a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE1000"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1001a">
+      <description>Error: It is a dynamic error if the effective value
+                     of the start-at attribute of the xsl:number
+                     instruction is not in the lexical space of xs:integer. The error may be signaled
+                  statically if it can be detected statically.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1001a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1001"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1015a">
+      <description>Generate error XTSE1015.
+Was error-code-313.
+It is a static error if an
+                        xsl:sort element with a select attribute has
+                     non-empty content.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1015a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1015"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1017a">
+      <description>Generate error XTSE1017.
+Was error-code-314.
+It is a static error if an
+                        xsl:sort element other than the first in a sequence of
+                     sibling xsl:sort elements has a stable
+                     attribute.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1017a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1017"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1020a">
+      <description>Generate error XTTE1020.
+Was error-code-315.
+If any sort key value, after
+                           atomization and any type
+                        conversion required by the data-type
+                        attribute, is a sequence containing more than one item, then the effect
+                        depends on whether the xsl:sort element is processed with XSLT 1.0
+                              behavior. With XSLT 1.0 behavior, the effective
+                        sort key value is the first item in the sequence. In other cases, this is a
+                           type error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1020a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE1020"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1030a">
+      <description>Generate error XTDE1030.
+Was error-code-316.
+It is a non-recoverable dynamic
+                           error if, for any sort key
+                           component, the set of sort key
+                           values evaluated for all the items in the initial sequence, after any type
+                        conversion requested, contains a pair of ordinary values for which the
+                        result of the XPath lt operator is an error.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1030a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1030"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1035a">
+      <description>Generate error XTDE1035.
+Was error-code-317.
+It is a non-recoverable dynamic
+                           error if the collation attribute of
+                           xsl:sort (after resolving against the base URI) is not a
+                        URI that is recognized by the implementation as referring to a
+                        collation.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1035a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1035"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1040a">
+      <description>Generate error XTSE1040.
+Was error-code-318.
+It is a static error if an
+                        xsl:perform-sort instruction with a select
+                     attribute has any content other than xsl:sort and
+                        xsl:fallback instructions.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1040a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1040"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1060a">
+      <description>Generate error XTSE1060.
+Was error-code-319.
+It is a static error if the
+               current-group function is used within a pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1060a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1060"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1061a">
+      <description>Error: It is a dynamic error if the
+                  current-group function is used when the
+                  current group is absent , or when it is invoked
+                  in the course of evaluating a pattern. The error
+               may be reported statically if it can be detected statically.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1061a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1061"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1070a">
+      <description>Generate error XTSE1070.
+Was error-code-320.
+It is a static error if the
+                  current-grouping-key function is used within a pattern.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1070a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1070"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1071a">
+      <description>Error: It is a dynamic error if the
+                  current-grouping-key function is used when the
+                  current grouping key is absent, or when it is invoked
+                     in the course of evaluating a pattern..
+               The error may be reported statically if it can be detected statically.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1071a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1071"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1071b">
+      <description>Error: It is a dynamic error if the
+                  current-grouping-key function is used when the
+                  current grouping key is absent, or when it is invoked
+                     in the course of evaluating a pattern..
+               The error may be reported statically if it can be detected statically.</description>
+      <created by="Michael Kay" on="2014-08-25"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1071b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1071"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1080a">
+      <description>Generate error XTSE1080.
+Was error-code-321.
+These four attributes the group-by,
+                           group-adjacent, group-starting-with, and
+                           group-ending-with attributes of
+                           xsl:for-each-group
+                      are mutually exclusive: it is a static error if none of these four attributes is present or if
+                     more than one of them is present.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1080a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1080"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1080b">
+      <description>Generate error XTSE1080.
+Was error-code-322.
+These four attributes the group-by,
+                           group-adjacent, group-starting-with, and
+                           group-ending-with attributes of
+                           xsl:for-each-group
+                      are mutually exclusive: it is a static error if none of these four attributes is present or if
+                     more than one of them is present.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1080b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1080"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1080c">
+      <description>Generate error XTSE1080.
+Was error-code-323.
+These four attributes the group-by,
+                           group-adjacent, group-starting-with, and
+                           group-ending-with attributes of
+                           xsl:for-each-group
+                      are mutually exclusive: it is a static error if none of these four attributes is present or if
+                     more than one of them is present.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1080c.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1080"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1090a">
+      <description>Generate error XTSE1090.
+Was error-code-324.
+It is a static error to specify the collation attribute 
+                     or the composite attribute if neither the
+                        group-by attribute nor group-adjacent attribute is
+                     specified.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1090a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1090"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1100a">
+      <description>Generate error XTTE1100.
+Was error-code-325.
+It is a type error if the result of
+                     evaluating the group-adjacent expression is an empty sequence
+                     or a sequence containing more than one item, 
+                     unless composite="yes" is specified.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1100a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE1100"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1100b">
+      <description>Generate error XTTE1100.
+Was error-code-326.
+It is a type error if the result of
+                     evaluating the group-adjacent expression is an empty sequence
+                     or a sequence containing more than one item, 
+                     unless composite="yes" is specified.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1100b.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE1100"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1110a">
+      <description>Generate error XTDE1110.
+Was error-code-327.
+It is a non-recoverable dynamic
+                        error if the collation URI specified to
+                        xsl:for-each-group (after resolving against the base URI)
+                     is a collation that is not recognized by the implementation. (For notes,
+                        .)</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1110a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1110"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1120a">
+      <description>Generate error XTTE1120.
+Was error-code-328.
+When the group-starting-with or group-ending-with
+                     attribute of the xsl:for-each-group
+                        instruction is used, it is a type
+                        error if the result of evaluating the select
+                     expression contains an item that is not a node.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Abel Braaksma"
+                on="2013-12-09"
+                change="Error code XTTE1120 absent in xslt3.0 spec. Changed dependency to xslt20"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1120a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTTE1120"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1130a">
+      <description>Generate error XTSE1130.
+Was error-code-329.
+It is a static error if the
+                        xsl:analyze-string instruction contains neither an
+                        xsl:matching-substring nor an
+                        xsl:non-matching-substring element.</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1130a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTSE1130"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1140a">
+      <description>Generate error XTDE1140.
+Was error-code-330.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the regex attribute of the
+                           xsl:analyze-string instruction does not
+                     conform to the required syntax for regular expressions, as
+                     specified in . If the regular expression is
+                     known statically (for example, if the attribute does not contain any expressions enclosed in curly brackets) then
+                     the processor may signal the error as a static error. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1140a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1140"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1145a">
+      <description>Generate error XTDE1145.
+Was error-code-331.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the flags attribute of the
+                           xsl:analyze-string instruction has a value
+                     other than the values defined in . If the value
+                     of the attribute is known statically (for example, if the attribute does not
+                     contain any expressions enclosed in
+                     curly brackets) then the processor may signal the error as a
+                        static error. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1145a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1145"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1150a">
+      <description>Generate error XTDE1150. Regex in analyze-string matches zero-length string;
+        no longer an error in XSLT 3.0.
+Was error-code-332.
+It is a non-recoverable dynamic
+                        error if the effective
+                        value of the regex attribute of the
+                           xsl:analyze-string instruction is a
+                     regular expression that matches a zero-length string: or more specifically, if
+                     the regular expression $r and flags $f are such that
+                        matches("", $r, $f) returns true. If the regular expression is
+                     known statically (for example, if the attribute does not contain any expressions enclosed in curly brackets) then
+                     the processor may signal the error as a static error. </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay"
+                on="2014-04-01"
+                change="changed dependency to XSLT 2.0 only"/>
+      <environment ref="error001"/>
+      <dependencies>
+         <spec value="XSLT20"/>
+      </dependencies>
+      <test>
+         <stylesheet file="error-1150a.xsl"/>
+         <initial-template name="main"/>
+      </test>
+      <result>
+         <error code="XTDE1150"/>
+      </result>
+   </test-case>
+
+   <test-case name="error-1160a">
+      <description>Generate error XTRE1160/XTDE1160.
+Was error-code-333.
+When a URI reference supplied to the
+                  document function contains a
+                  fragment identifier, it is a recoverable
+                     dynamic error if the media type is not one that is recognized
+                  by the processor, or if the fragment identifier does not conform to the
+                  rules for fragment identifiers for that media type, or if the fragment
+                  identifier selects something other than a sequence of nodes (for example, if
+                  it selects a range of characters within a text node). The
+                     optional recovery
+                        action is to ignore the fragment identifier and return the
+                     document node.
+               </description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay"
+                on="2014-04-01"
+