No xsl:stylesheet child of xsl:package (bug 26468)
authorMichael Kay <mike@saxonica.com>
Fri, 22 Aug 2014 15:52:32 +0100
changeset 629 ddb96ca9aec9
parent 628 d983f97dc86c
child 630 650b5ccfd5d2
No xsl:stylesheet child of xsl:package (bug 26468)
tests/decl/override/_override-test-set.xml
tests/decl/override/override-001.xsl
tests/decl/override/override-002.xsl
tests/decl/override/override-003.xsl
tests/decl/override/override-004.xsl
tests/decl/override/override-005.xsl
tests/decl/override/override-006.xsl
tests/decl/override/override-007.xsl
tests/decl/override/override-008.xsl
tests/decl/override/override-009.xsl
tests/decl/override/override-010.xsl
tests/decl/override/override-011.xsl
tests/decl/override/override-012.xsl
tests/decl/override/override-101.xsl
tests/decl/override/override-102.xsl
tests/decl/override/override-103.xsl
tests/decl/override/override-201.xsl
tests/decl/override/override-202.xsl
tests/decl/override/override-base-001.xsl
tests/decl/override/override-base-101.xsl
tests/decl/override/override-base-201.xsl
--- a/tests/decl/override/_override-test-set.xml	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/_override-test-set.xml	Fri Aug 22 15:52:32 2014 +0100
@@ -23,6 +23,7 @@
    <test-case name="override-001">
       <description>Successful override of a function</description>
       <created by="Michael Kay" on="2013-07-08"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-001.xsl" role="principal"/>
@@ -36,6 +37,7 @@
    <test-case name="override-002">
       <description>Successful use of override of a function defined in a library package</description>
       <created by="O'Neil Delpratt" on="2013-07-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-002.xsl" role="principal"/>
@@ -49,6 +51,7 @@
    <test-case name="override-003">
       <description>Unsuccessful use of override of a function defined in a library package. Parameter types are different</description>
       <created by="O'Neil Delpratt" on="2013-07-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-003.xsl" role="principal"/>
@@ -62,6 +65,7 @@
    <test-case name="override-004">
       <description>Unsuccessful use of override of a function as it is not defined in a library package.</description>
       <created by="O'Neil Delpratt" on="2013-07-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-004.xsl" role="principal"/>
@@ -75,6 +79,7 @@
    <test-case name="override-005">
       <description>Disallow text as a child of xsl:override.</description>
       <created by="Michael Kay" on="2013-07-19"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-005.xsl" role="principal"/>
@@ -88,6 +93,7 @@
    <test-case name="override-006">
       <description>Disallow LRE as a child of xsl:override.</description>
       <created by="Michael Kay" on="2013-07-19"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-006.xsl" role="principal"/>
@@ -101,6 +107,7 @@
    <test-case name="override-007">
       <description>Disallow xsl:override as a child of xsl:override.</description>
       <created by="Michael Kay" on="2013-07-19"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-007.xsl" role="principal"/>
@@ -114,6 +121,7 @@
    <test-case name="override-008">
       <description>Empty xsl:override is allowed.</description>
       <created by="Michael Kay" on="2013-07-19"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-008.xsl" role="principal"/>
@@ -127,6 +135,7 @@
    <test-case name="override-009">
       <description>Overridden function called from within a stylesheet function</description>
       <created by="Michael Kay" on="2013-10-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-009.xsl" role="principal"/>
@@ -140,6 +149,7 @@
    <test-case name="override-010">
       <description>Overridden function called from within a global variable initializer</description>
       <created by="Michael Kay" on="2013-10-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-010.xsl" role="principal"/>
@@ -153,6 +163,7 @@
    <test-case name="override-011">
       <description>Overridden function called from within a template rule</description>
       <created by="Michael Kay" on="2013-10-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-011.xsl" role="principal"/>
@@ -166,6 +177,7 @@
    <test-case name="override-012">
       <description>Overridden function called from within a global variable in used package</description>
       <created by="Michael Kay" on="2013-10-17"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-001"/>
       <test>
          <package file="override-012.xsl" role="principal"/>
@@ -181,6 +193,7 @@
    <test-case name="override-101">
       <description>Successful override of a named template, when called from overriding package</description>
       <created by="Michael Kay" on="2013-07-31"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-101"/>
       <test>
          <package file="override-101.xsl" role="principal"/>
@@ -194,6 +207,7 @@
    <test-case name="override-102">
       <description>Successful override of a named template, when called from base package</description>
       <created by="Michael Kay" on="2013-07-31"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-101"/>
       <test>
          <package file="override-102.xsl" role="principal"/>
@@ -207,6 +221,7 @@
    <test-case name="override-103">
       <description>Cannot call an abstract template</description>
       <created by="Michael Kay" on="2013-07-31"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-101"/>
       <test>
          <package file="override-103.xsl" role="principal"/>
@@ -220,6 +235,7 @@
    <test-case name="override-201">
       <description>Successful override of a public global variable</description>
       <created by="Michael Kay" on="2013-10-18"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-201"/>
       <test>
          <package file="override-201.xsl" role="principal"/>
@@ -233,6 +249,7 @@
    <test-case name="override-202">
       <description>Reference from private variable to overridden public variable</description>
       <created by="Michael Kay" on="2013-10-18"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <environment ref="override-env-201"/>
       <test>
          <package file="override-202.xsl" role="principal"/>
--- a/tests/decl/override/override-001.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-001.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -29,7 +29,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
       <xsl:choose>
@@ -38,6 +38,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-002.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-002.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -20,7 +20,7 @@
   </xsl:use-package>
 
   
-  <xsl:stylesheet>
+ 
   
     <!-- Call public function defined in used package -->
    
@@ -31,6 +31,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-003.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-003.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -20,7 +20,7 @@
   </xsl:use-package>
 
   
-  <xsl:stylesheet>
+ 
   
     <!-- Call public function defined in used package -->
    
@@ -31,6 +31,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-004.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-004.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -20,7 +20,6 @@
   </xsl:use-package>
 
   
-  <xsl:stylesheet>
   
     <!-- Call public function defined in used package -->
    
@@ -31,6 +30,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-005.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-005.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -27,12 +27,12 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
       <out/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-006.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-006.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -27,12 +27,12 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
       <out/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-007.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-007.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -27,12 +27,12 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
       <out/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-008.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-008.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -17,12 +17,12 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
    
     <xsl:template name="main">
       <out/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-009.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-009.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -29,7 +29,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
   
     <xsl:function name="p:local-function">
       <xsl:param name="cond" as="xs:boolean"/>
@@ -43,6 +43,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-010.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-010.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -29,7 +29,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
   
     <xsl:variable name="v" select="p:f('x', 5)"/>
    
@@ -40,6 +40,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-011.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-011.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -29,7 +29,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
   
     <xsl:variable name="g"><a/></xsl:variable>
     
@@ -47,6 +47,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-012.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-012.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -29,7 +29,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
   
    
     <xsl:template name="main">
@@ -39,6 +39,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-101.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-101.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -36,7 +36,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
     <out>
@@ -47,6 +47,6 @@
     </out>  
     </xsl:template>
     
-  </xsl:stylesheet>  
+
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-102.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-102.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -36,7 +36,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
   
     <!-- Demonstrate that the named template u in the base package is rebound to the declaration of t in this package -->
    
@@ -49,6 +49,6 @@
     </out>  
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-103.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-103.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -31,7 +31,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
   
     <!-- Demonstrate that the named template u in the base package is rebound to the declaration of t in this package -->
    
@@ -44,6 +44,6 @@
     </out>  
     </xsl:template>
     
-  </xsl:stylesheet>  
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-201.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-201.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -20,7 +20,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+  
    
     <xsl:template name="main">
       <xsl:choose>
@@ -29,6 +29,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-202.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-202.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -20,7 +20,7 @@
     
   </xsl:use-package>
   
-  <xsl:stylesheet>
+ 
    
     <xsl:template name="main">
       <xsl:choose>
@@ -29,6 +29,6 @@
       </xsl:choose>
     </xsl:template>
     
-  </xsl:stylesheet>  
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-base-001.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-base-001.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -7,7 +7,7 @@
   xmlns:p="http://www.w3.org/xslt30tests/override-base-001"
   exclude-result-prefixes="xs p">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:function name="p:f" as="xs:string" visibility="public">
       <xsl:param name="in" as="xs:string"/>
@@ -34,6 +34,6 @@
     
     <xsl:variable name="p:final-var" select="p:f('+', 3)" visibility="final"/>
     
-  </xsl:stylesheet>
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-base-101.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-base-101.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -7,7 +7,7 @@
   xmlns:p="http://www.w3.org/xslt30tests/override-base-101"
   exclude-result-prefixes="xs p">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:template name="t" as="xs:string" visibility="public">
       <xsl:param name="in" as="xs:string"/>
@@ -47,6 +47,6 @@
       </xsl:call-template>
     </xsl:template>
     
-  </xsl:stylesheet>
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/override/override-base-201.xsl	Fri Aug 22 15:52:03 2014 +0100
+++ b/tests/decl/override/override-base-201.xsl	Fri Aug 22 15:52:32 2014 +0100
@@ -6,7 +6,7 @@
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   exclude-result-prefixes="xs">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:variable name="v-public" as="xs:integer" visibility="public" select="$v-private - 1"/>
     
@@ -18,6 +18,6 @@
     
     <xsl:variable name="v-base" as="xs:integer" visibility="public" select="2"/>
     
-  </xsl:stylesheet>
+  
   
 </xsl:package>   
\ No newline at end of file