New tests for fn:transform specifying package-name and package-version default tip
authorMichael Kay <mike@saxonica.com>
Wed, 25 Apr 2018 11:34:02 +0100
changeset 1844 155c64700f46
parent 1843 097e32090c7b
New tests for fn:transform specifying package-name and package-version
tests/fn/transform/transform-005.xsl
tests/fn/transform/transform-005a.xsl
tests/fn/transform/transform-006.xsl
tests/fn/transform/transform-006a.xsl
tests/fn/transform/transform-006b.xsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fn/transform/transform-005.xsl	Wed Apr 25 11:34:02 2018 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="3.0"
+    expand-text="yes">
+  
+    
+    <xsl:template name="main">
+        <out>
+            <xsl:copy-of select="transform( map { 'package-name': 'http://transform-005a/', 'package-version' : '1.0.2',
+            'initial-template' : QName('', 'main'), 'delivery-format' : 'raw'})?output"/>
+        </out>
+    </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fn/transform/transform-005a.xsl	Wed Apr 25 11:34:02 2018 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:package
+    name="http://transform-005a/"
+    package-version="1.0.2"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="3.0"
+    expand-text="yes">
+  
+    
+    <xsl:template name="main">
+        <in/>
+    </xsl:template>
+
+</xsl:package>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fn/transform/transform-006.xsl	Wed Apr 25 11:34:02 2018 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="3.0"
+    expand-text="yes">
+  
+    
+    <xsl:template name="main">
+        <out>
+            <xsl:copy-of select="transform( map { 'package-name': 'http://transform-006a/', 'package-version' : '1.*',
+            'initial-template' : QName('', 'main'), 'delivery-format' : 'raw'})?output"/>
+        </out>
+    </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fn/transform/transform-006a.xsl	Wed Apr 25 11:34:02 2018 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:package
+    name="http://transform-006a/"
+    package-version="1.0.5"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="3.0"
+    expand-text="yes">
+  
+    
+    <xsl:template name="main">
+        <in>1.0.5</in>
+    </xsl:template>
+
+</xsl:package>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fn/transform/transform-006b.xsl	Wed Apr 25 11:34:02 2018 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:package
+    name="http://transform-006a/"
+    package-version="2.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="3.0"
+    expand-text="yes">
+  
+    
+    <xsl:template name="main">
+        <in>2.0</in>
+    </xsl:template>
+
+</xsl:package>
\ No newline at end of file