No xsl:stylesheet child of xsl:package (bug 26468)
authorMichael Kay <mike@saxonica.com>
Fri, 22 Aug 2014 15:52:03 +0100
changeset 628 d983f97dc86c
parent 627 748bed48fd1f
child 629 ddb96ca9aec9
No xsl:stylesheet child of xsl:package (bug 26468)
tests/decl/package/_package-test-set.xml
tests/decl/package/package-001.xsl
tests/decl/package/package-901.xsl
tests/decl/package/package-902.xsl
tests/decl/package/package-903.xsl
tests/decl/package/package-904.xsl
tests/decl/package/package-906.xsl
tests/decl/package/package-907.xsl
--- a/tests/decl/package/_package-test-set.xml	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/_package-test-set.xml	Fri Aug 22 15:52:03 2014 +0100
@@ -11,6 +11,7 @@
    <test-case name="package-001">
       <description>Simplest possible package</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"/>
       <test>
          <package file="package-001.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -23,6 +24,7 @@
    <test-case name="package-901">
       <description>Error - package has no name</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"/>
       <test>
          <package file="package-901.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -33,8 +35,9 @@
    </test-case>
    
    <test-case name="package-902">
-      <description>Error - package has no xsl:stylesheet child</description>
+      <description>Error - package has inappropriate child</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"/>
       <test>
          <package file="package-902.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -48,6 +51,7 @@
       <description>Error - misplaced xsl:expose element</description>
       <created by="Michael Kay" on="2013-07-08"/>
       <modified by="Abel Braaksma" on="2013-12-10" change="Fixed component attribute name and value: component=template"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <test>
          <package file="package-903.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -60,6 +64,7 @@
    <test-case name="package-904">
       <description>Error - misplaced xsl:use-package element</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"/>
       <test>
          <package file="package-904.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -72,6 +77,7 @@
    <test-case name="package-905">
       <description>Error - 2 xsl:stylesheet elements</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"/>
       <test>
          <package file="package-905.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -85,6 +91,7 @@
       <description>Error - unknown attribute on xsl:package</description>
       <created by="Michael Kay" on="2013-07-08"/>
       <modified by="Abel Braaksma" on="2013-12-10" change="Fixed expected error code to XTSE0090"/>
+      <modified by="Michael Kay" on="2014-08-22" change="no xsl:stylesheet child of xsl:package"/>
       <test>
          <package file="package-906.xsl" role="principal"/>
          <initial-template name="main"/>
@@ -97,6 +104,7 @@
    <test-case name="package-907">
       <description>Error - invalid version attribute on xsl:package</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"/>
       <test>
          <package file="package-907.xsl" role="principal"/>
          <initial-template name="main"/>
--- a/tests/decl/package/package-001.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-001.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -8,10 +8,9 @@
   xmlns:p="http://www.w3.org/xslt30tests/use-package-base-001"
   exclude-result-prefixes="xs p">
   
-  <xsl:stylesheet version="3.0">
+
     <xsl:template name="main">
       <ok/>
     </xsl:template>
-  </xsl:stylesheet>
-      
+
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-901.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-901.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -7,12 +7,12 @@
   xmlns:p="http://www.w3.org/xslt30tests/use-package-base-001"
   exclude-result-prefixes="xs p">
     
-  <xsl:stylesheet version="3.0">
+
   
     <xsl:template name="main">
       <ok/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-902.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-902.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -1,4 +1,4 @@
-<!-- missing xsl:stylesheet child -->
+<!-- non-permitted child -->
 <xsl:package
   name="http://www.w3.org/xslt30tests/package-902"  
   package-version="1.0.0"
@@ -7,6 +7,8 @@
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:p="http://www.w3.org/xslt30tests/use-package-base-001"
   exclude-result-prefixes="xs p">
+  
+  <xsl:element name="x"/>
     
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-903.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-903.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -7,14 +7,15 @@
   xmlns:p="http://www.w3.org/xslt30tests/use-package-base-001"
   exclude-result-prefixes="xs p">
   
-  <xsl:expose component="template" names="*" visibility="public"/>
+  
     
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:template name="main">
+      <xsl:expose component="template" names="*" visibility="public"/>
       <ok/>
     </xsl:template>
     
-  </xsl:stylesheet>  
+
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-904.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-904.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -8,14 +8,15 @@
   xmlns:p="http://www.w3.org/xslt30tests/use-package-base-001"
   exclude-result-prefixes="xs p">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:template name="main">
       <ok/>
+       <xsl:use-package name="http://www.w3.org/xslt30tests/package-903"/>  
     </xsl:template>
     
-  </xsl:stylesheet>
+ 
   
-  <xsl:use-package name="http://www.w3.org/xslt30tests/package-903"/>  
+ 
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-906.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-906.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -8,12 +8,12 @@
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   exclude-result-prefixes="xs">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:template name="main">
       <ok/>
     </xsl:template>
     
-  </xsl:stylesheet>
+  
   
 </xsl:package>   
\ No newline at end of file
--- a/tests/decl/package/package-907.xsl	Fri Aug 22 13:01:31 2014 +0100
+++ b/tests/decl/package/package-907.xsl	Fri Aug 22 15:52:03 2014 +0100
@@ -7,12 +7,12 @@
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   exclude-result-prefixes="xs">
   
-  <xsl:stylesheet version="3.0">
+  
   
     <xsl:template name="main">
       <ok/>
     </xsl:template>
     
-  </xsl:stylesheet>
+  
   
 </xsl:package>   
\ No newline at end of file