Correct xsl:override to xsl:original
authorMichael Kay <mike@saxonica.com>
Wed, 25 Apr 2018 11:33:06 +0100
changeset 1843 097e32090c7b
parent 1842 30689b11f4c0
child 1844 155c64700f46
Correct xsl:override to xsl:original
tests/fn/function-lookup/_function-lookup-test-set.xml
tests/fn/function-lookup/function-lookup-006.xsl
tests/fn/transform/_transform-test-set.xml
--- a/tests/fn/function-lookup/_function-lookup-test-set.xml	Wed Apr 25 10:00:47 2018 +0100
+++ b/tests/fn/function-lookup/_function-lookup-test-set.xml	Wed Apr 25 11:33:06 2018 +0100
@@ -92,7 +92,7 @@
    </test-case>
    
    <test-case name="function-lookup-006">
-      <description>function-lookup(xsl:override)</description>
+      <description>function-lookup(xsl:original)</description>
       <created by="Michael Kay" on="2018-04-24"/>
       <environment>
          <package file="function-lookup-005a.xsl" role="secondary" uri="http://function-lookup-005a/" package-version="1.0"/>
--- a/tests/fn/function-lookup/function-lookup-006.xsl	Wed Apr 25 10:00:47 2018 +0100
+++ b/tests/fn/function-lookup/function-lookup-006.xsl	Wed Apr 25 11:33:06 2018 +0100
@@ -13,7 +13,7 @@
             <xsl:function name="f:add" visibility="public">
                 <xsl:param name='x'/>
                 <xsl:param name="y"/>
-                <xsl:sequence select="$x + $y + (if(exists(function-lookup(QName('http://www.w3.org/1999/XSL/Transform', 'override'), 2))) then 1 else 0)"/>
+                <xsl:sequence select="$x + $y + (if(exists(function-lookup(QName('http://www.w3.org/1999/XSL/Transform', 'original'), 2))) then 1 else 0)"/>
             </xsl:function>
             <xsl:function name="f:subtract" visibility="public">
                 <xsl:param name='x'/>
--- a/tests/fn/transform/_transform-test-set.xml	Wed Apr 25 10:00:47 2018 +0100
+++ b/tests/fn/transform/_transform-test-set.xml	Wed Apr 25 11:33:06 2018 +0100
@@ -56,6 +56,33 @@
          <assert>/out = 42</assert>
       </result>
    </test-case>
+   
+   <test-case name="transform-005">
+      <description>fn:transform() invoking a named package</description>
+      <created by="Michael Kay" on="2018-04-25"/>
+      <test>
+         <stylesheet file="transform-005.xsl"/>
+         <initial-template name="main"/>
+         <package file="transform-005a.xsl" role="secondary" uri="http://transform-005a/" package-version="1.0.2"/>
+      </test>
+      <result>
+         <assert>/out/in</assert>
+      </result>
+   </test-case>
+   
+   <test-case name="transform-006">
+      <description>fn:transform() selecting a named package by version range</description>
+      <created by="Michael Kay" on="2018-04-25"/>
+      <test>
+         <stylesheet file="transform-006.xsl"/>
+         <initial-template name="main"/>
+         <package file="transform-006a.xsl" role="secondary" uri="http://transform-006a/" package-version="1.0.5"/>
+         <package file="transform-006b.xsl" role="secondary" uri="http://transform-006a/" package-version="2.0"/>
+      </test>
+      <result>
+         <assert>/out/in = '1.0.5'</assert>
+      </result>
+   </test-case>
 
 
 </test-set>
\ No newline at end of file