commit merge
authorMichael Kay <mike@saxonica.com>
Fri, 27 Mar 2015 11:18:06 +0000
changeset 865 a32e5dab7bdb
parent 864 12fbfd9f31af (current diff)
parent 863 8a52ecfb8ae0 (diff)
child 866 6a6b8a0225ac
commit merge
--- a/tests/attr/match/match-082a.xsl	Fri Mar 27 11:16:41 2015 +0000
+++ b/tests/attr/match/match-082a.xsl	Fri Mar 27 11:18:06 2015 +0000
@@ -1,31 +1,20 @@
 <?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
-    xmlns:err="http://www.w3.org/2005/xqt-errors"
-    exclude-result-prefixes="err">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
 
-    <!-- 
-        Parentheses in patterns become legal in XSLT 3.0. They have the same priority.
-        This test tests throwing the same-priority error.
+    <!--
+        Purpose: Parentheses in patterns become legal in XSLT 3.0. They have the same priority.
     -->
 
-    <xsl:mode on-multiple-match="fail" />
-    
-    <xsl:template match="doc">
-        <wrong />
-    </xsl:template>
-
     <xsl:template match="(doc|cod)">
         <wrong />
     </xsl:template>
 
-    <xsl:template name="xsl:initial-template">
-        <xsl:variable name="n"><doc /></xsl:variable>
-        <xsl:try>
-            <xsl:apply-templates select="$n"/>
-            <xsl:catch errors="err:XTDE0540">
-                <ok />
-            </xsl:catch>
-        </xsl:try>
+    <xsl:template match="doc">
+        <ok />
+    </xsl:template>
+
+    <xsl:template match="/">
+        <xsl:apply-templates />
     </xsl:template>
 
 </xsl:stylesheet>