Correction to test validation-1301
authorMichael Kay <mike@saxonica.com>
Fri, 20 Mar 2015 14:12:08 +0000
changeset 839 fdaf817d5f75
parent 838 22ba7cf893d4
child 840 e80670ae04c0
Correction to test validation-1301
tests/attr/validation/_validation-test-set.xml
tests/attr/validation/validation-1301.xsl
--- a/tests/attr/validation/_validation-test-set.xml	Fri Mar 20 14:11:31 2015 +0000
+++ b/tests/attr/validation/_validation-test-set.xml	Fri Mar 20 14:12:08 2015 +0000
@@ -834,6 +834,7 @@
       </dependencies>
       <test>
          <stylesheet file="validation-1301.xsl"/>
+         <initial-template name="main"/>
       </test>
       <result>
          <assert-xml><![CDATA[<list><element type="type2"><child1/><child2/></element></list>]]></assert-xml>
--- a/tests/attr/validation/validation-1301.xsl	Fri Mar 20 14:11:31 2015 +0000
+++ b/tests/attr/validation/validation-1301.xsl	Fri Mar 20 14:12:08 2015 +0000
@@ -34,7 +34,7 @@
        </xs:schema>
    </xsl:import-schema>
    
-   <xsl:template match="/">
+   <xsl:template match="/" name="main">
        <list xsl:validation="strict"> <!-- strict validation here works -->
            <element xsl:validation="strict"> <!-- strict validation here causes error -->
                <xsl:attribute name="type" select="'type2'"/>