Bug 21910, changing several tests meant for XSLT30+ to have xsl:stylesheet/@version="3.0" (instead of 2.0)
authorabraaksm
Tue, 07 Apr 2015 05:14:39 +0200
changeset 922 617ec6e1f987
parent 921 f94875629f10
child 923 347ecdad8943
Bug 21910, changing several tests meant for XSLT30+ to have xsl:stylesheet/@version="3.0" (instead of 2.0)
tests/attr/match/match-215.xsl
tests/attr/match/match-216.xsl
tests/attr/match/match-217.xsl
tests/attr/match/match-222.xsl
tests/attr/match/match-233.xsl
tests/attr/tunnel/tunnel-0117.xsl
tests/attr/tunnel/tunnel-0119.xsl
tests/attr/use-when/use-when-0407a.xsl
tests/decl/function/function-0401.xsl
tests/decl/function/function-1902.xsl
tests/decl/output/output-0137a.xsl
tests/decl/output/output-0137b.xsl
tests/decl/output/output-0197a.xsl
tests/decl/output/output-0198a.xsl
tests/decl/variable/variable-4702.xsl
tests/fn/function-available/function-available-1011.xsl
tests/fn/system-property/system-property-012.xsl
tests/insn/analyze-string/analyze-string-093.xsl
tests/insn/analyze-string/analyze-string-094.xsl
tests/insn/copy/copy-0606.xsl
tests/insn/element/element-0110.xsl
tests/insn/element/element-0111.xsl
tests/insn/element/element-0310.xsl
tests/insn/element/element-0311.xsl
tests/insn/element/element-0312.xsl
tests/insn/result-document/result-document-0283.xsl
tests/misc/error/error-0060a.xsl
tests/misc/error/error-0270a.xsl
tests/misc/initial-function/initial-function-001.xsl
tests/misc/initial-mode/initial-mode-004.xsl
--- a/tests/attr/match/match-215.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/match/match-215.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:transform xmlns:my="http://www.example.com/ns/match/id-idref-notation"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-   exclude-result-prefixes="my xs" version="2.0">
+   exclude-result-prefixes="my xs" version="3.0">
    <!-- Purpose: parenthesized pattern does not match parentless node and has higher priority -->
 
    <xsl:variable name="data" as="element()">
--- a/tests/attr/match/match-216.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/match/match-216.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -3,7 +3,7 @@
     xmlns:xs="http://www.w3.org/2001/XMLSchema" 
     xmlns:my="my" 
     exclude-result-prefixes="xs my" 
-    version="2.0">
+    version="3.0">
     
     <xsl:variable name="data">
       <A>
--- a/tests/attr/match/match-217.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/match/match-217.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -3,7 +3,7 @@
     xmlns:xs="http://www.w3.org/2001/XMLSchema" 
     xmlns:my="my" 
     exclude-result-prefixes="xs my" 
-    version="2.0">
+    version="3.0">
     
   <!-- test that the priority of a pattern with a predicate is 0.5 -->  
     
--- a/tests/attr/match/match-222.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/match/match-222.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -2,7 +2,7 @@
 <xslt:transform xmlns:my="http://www.example.com/ns/match/var"
    xmlns:pre="http://www.example.com/ns/match/var" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xslt="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="my xs pre"
-   version="2.0">
+   version="3.0">
    
    <!-- derived from match-158 -->
    <!-- Purpose: Test of xsl:mode typed="strict" with union patterns.-->
--- a/tests/attr/match/match-233.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/match/match-233.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -3,7 +3,7 @@
     xmlns:xs="http://www.w3.org/2001/XMLSchema" 
     xmlns:my="my" 
     exclude-result-prefixes="xs my" 
-    version="2.0">
+    version="3.0">
     
     <xsl:variable name="data" as="element(A)">
       <A>
--- a/tests/attr/tunnel/tunnel-0117.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/tunnel/tunnel-0117.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
 	<!-- Purpose: Simple test with a non-tunnel param (tunnel="false") specified within xsl:apply-templates
   		but template param has tunnel="true" -->
 
--- a/tests/attr/tunnel/tunnel-0119.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/tunnel/tunnel-0119.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
 	<!-- Purpose: Simple test with a non-tunnel param (tunnel="0") specified within xsl:apply-templates
   		but template param has tunnel="1" -->
 
--- a/tests/attr/use-when/use-when-0407a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/attr/use-when/use-when-0407a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
       <!-- Purpose:  Tests using function-available for generate-id,system-property, key, current
   				unparsed-entity-uri, and unparsed-entity-public-id in an use-when instruction. -->
 
--- a/tests/decl/function/function-0401.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/function/function-0401.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -3,7 +3,7 @@
 <!-- TEST lazy evaluation of expressions using values returned from a function -->
 
 <?spec xslt#stylesheet-functions?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
 xmlns:test="http://foobar/"
 >
 
--- a/tests/decl/function/function-1902.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/function/function-1902.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0"?> 
 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
     xmlns:fn="http://www.w3.org/2005/xpath-functions" 
     xmlns:op="http://www.w3.org/2005/xpath-operators" 
     xmlns:map="http://www.w3.org/2005/xpath-functions/map" 
--- a/tests/decl/output/output-0137a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/output/output-0137a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <t:transform xmlns="http://www.w3.org/1999/xhtml"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 
    <t:output method="xhtml"
              indent="no"
--- a/tests/decl/output/output-0137b.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/output/output-0137b.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <t:transform xmlns="http://www.w3.org/1999/xhtml"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 
    <t:output method="xhtml"
              indent="no"
--- a/tests/decl/output/output-0197a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/output/output-0197a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
    <!-- Purpose: Test that an error is raised on invalid @byte-order-mark value ("TRUE") in xsl:output.-->
 
    <t:output method="xml"
--- a/tests/decl/output/output-0198a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/output/output-0198a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
    <!-- Purpose: Test that an error is raised on invalid @escape-uri-attributes value ("YES") in xsl:output.-->
 
    <t:output method="xml"
--- a/tests/decl/variable/variable-4702.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/decl/variable/variable-4702.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
 
 <!-- use EQName in variable names -->
 
--- a/tests/fn/function-available/function-available-1011.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/fn/function-available/function-available-1011.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,7 +1,7 @@
 <?xml version="1.0"?> 
 
 <?spec xslt#stylesheet-functions?>
-<xsl:stylesheet version="2.0" 
+<xsl:stylesheet version="3.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fn="http://www.w3.org/2005/xpath-functions"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
--- a/tests/fn/system-property/system-property-012.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/fn/system-property/system-property-012.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -2,7 +2,7 @@
 <xsl:transform xmlns:xs="http://www.w3.org/2001/XMLSchema"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 exclude-result-prefixes="xs"
-                version="2.0">
+                version="3.0">
 
    <xsl:mode streamable="yes" use-when="system-property('xsl:supports-streaming')='yes'"/>
    
--- a/tests/insn/analyze-string/analyze-string-093.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/analyze-string/analyze-string-093.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
-xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"
+xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0"
 exclude-result-prefixes="xs">
 
 <!-- Purpose: matching-substring must precede non-matching-substring -->
--- a/tests/insn/analyze-string/analyze-string-094.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/analyze-string/analyze-string-094.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
-xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"
+xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0"
 exclude-result-prefixes="xs">
 
 <!-- Purpose: xsl:fallback must come last -->
--- a/tests/insn/copy/copy-0606.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/copy/copy-0606.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='UTF-8' ?>
-<xsl:stylesheet version='2.0'
+<xsl:stylesheet version='3.0'
 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
 
     <!-- test use copy-namespaces attribute of xsl:copy, with values "  1"  (with some white-space), "0". (XSLT 3.0) -->
--- a/tests/insn/element/element-0110.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/element/element-0110.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
    <!-- Purpose: Test case to create a new element using xsl:element and use inherit-namespace="  false" (with some white-space). -->
 
    <t:template match="doc">
--- a/tests/insn/element/element-0111.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/element/element-0111.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<t:transform xmlns:t="http://www.w3.org/1999/XSL/Transform" version="3.0">
    <!-- Purpose: Test case to create a new element using xsl:element and use inherit-namespace="0". -->
 
    <t:template match="doc">
--- a/tests/insn/element/element-0310.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/element/element-0310.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -2,7 +2,7 @@
 <t:transform xmlns:fun="http://www.funJobs.com"
              xmlns:easy="http://www.easyJobs.com"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 <!-- Purpose: Test case that uses inherit-namespaces = "true" on an xsl:element instruction
   				to verify that the namespace nodes are copied to the children and descendants 
   				of the newly constructed element -->
--- a/tests/insn/element/element-0311.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/element/element-0311.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -2,7 +2,7 @@
 <t:transform xmlns:fun="http://www.funJobs.com"
              xmlns:easy="http://www.easyJobs.com"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 <!-- Purpose: Test case that uses inherit-namespaces = "1" on an xsl:element instruction
   				to verify that the namespace nodes are copied to the children and descendants 
   				of the newly constructed element -->
--- a/tests/insn/element/element-0312.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/element/element-0312.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -2,7 +2,7 @@
 <t:transform xmlns:fun="http://www.funJobs.com"
              xmlns:easy="http://www.easyJobs.com"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 	<!-- Purpose: Test case that uses inherit-namespaces ="01" on an xsl:element instruction (not allowed). -->
 
    <t:template match="doc">
--- a/tests/insn/result-document/result-document-0283.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/insn/result-document/result-document-0283.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <t:transform xmlns="http://www.w3.org/1999/xhtml"
              xmlns:t="http://www.w3.org/1999/XSL/Transform"
-             version="2.0">
+             version="3.0">
 
    <!-- Purpose: Test empty elements with empty content model in XHTML result document and @indent="NO" (not allowed). -->
 
--- a/tests/misc/error/error-0060a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/misc/error/error-0060a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -3,7 +3,7 @@
                         error if the initial
                         template defines a template
                         parameter that specifies required="yes".-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
 
 <?error XTDE0060?>
 
--- a/tests/misc/error/error-0270a.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/misc/error/error-0270a.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -7,7 +7,7 @@
                declaration if both have the same import
                precedence. Two NameTests are considered the same if they match the same set of names
                (which can be determined by comparing them after expanding namespace prefixes to URIs).-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
 
 <?error XTRE0270?>
 <!-- Either signals the error, or reports two (whitespace) text nodes -->
--- a/tests/misc/initial-function/initial-function-001.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/misc/initial-function/initial-function-001.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0"?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
   xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:my="http://my.net/" exclude-result-prefixes="my saxon xs">
 
--- a/tests/misc/initial-mode/initial-mode-004.xsl	Tue Apr 07 04:30:36 2015 +0200
+++ b/tests/misc/initial-mode/initial-mode-004.xsl	Tue Apr 07 05:14:39 2015 +0200
@@ -1,5 +1,5 @@
 <?xml version="1.0"?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:my="http://my.net/" exclude-result-prefixes="my xs">