Test that xsl:evaluate uses the default collation
authorMichael Kay <mike@saxonica.com>
Tue, 11 Sep 2018 15:06:31 +0100
changeset 1891 13bd2061eeae
parent 1886 5101619186ad
child 1892 043fdfaa9c5c
Test that xsl:evaluate uses the default collation
tests/insn/evaluate/_evaluate-test-set.xml
tests/insn/evaluate/evaluate-049.xsl
--- a/tests/insn/evaluate/_evaluate-test-set.xml	Tue Sep 04 17:31:26 2018 +0100
+++ b/tests/insn/evaluate/_evaluate-test-set.xml	Tue Sep 11 15:06:31 2018 +0100
@@ -816,4 +816,15 @@
          </any-of>       
       </result>
    </test-case>
+   
+   <test-case name="evaluate-049">
+      <description>Default collation for xsl:evaluate</description>
+      <created by="Michael Kay" on="2018-09-07"/>
+      <test>
+         <stylesheet file="evaluate-049.xsl"/>        
+      </test>
+      <result>
+         <assert>/out = 'true'</assert>
+      </result>
+   </test-case>
 </test-set>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/insn/evaluate/evaluate-049.xsl	Tue Sep 11 15:06:31 2018 +0100
@@ -0,0 +1,17 @@
+<?xml version="1.0"?> 
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
+  xmlns:my="http://www.example.com/my-functions" exclude-result-prefixes="my">
+
+  <!-- PURPOSE test xsl:evaluate uses the default collation -->
+
+
+  <xsl:param name="p">"XYZ" eq "xyz"</xsl:param>
+  
+  <xsl:template name="xsl:initial-template" default-collation="http://www.w3.org/2013/collation/UCA?strength=secondary">
+    <out>
+      <xsl:evaluate xpath="$p"/>
+    </out>
+  </xsl:template>
+
+ 
+</xsl:stylesheet>