Accept a mode as final, and override it; tests for bug 30412
authorMichael Kay <mike@saxonica.com>
Mon, 11 Mar 2019 18:13:03 +0000
changeset 2051 0847ecabd2c1
parent 2050 fa3f50fa32d3
child 2052 109cba7405c9
Accept a mode as final, and override it; tests for bug 30412
tests/insn/next-match/next-match-040.xsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/next-match/next-match-040.xsl	Mon Mar 11 18:13:03 2019 +0000
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0"
+   expand-text="1">
+   <!-- Purpose: next-match across package boundaries. Variant of -036 in which the mode is accepted as final rather than public -->
+   <!-- See also override-m-016, Saxon bug 4157, and W3C bug 30412 -->
+   
+   <t:use-package name="http://xslt-tests/next-match-036-lib">
+      <t:accept component="mode" names="m" visibility="final"/>
+      <t:override>
+         <t:template match="tag" mode="m">
+            <tag2><t:next-match/></tag2>
+         </t:template>
+      </t:override>
+   </t:use-package>
+      
+   
+
+</t:transform>