PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2931

*** shadow/2931 Tue Jul 31 11:55:55 2001
--- shadow/2931.tmp.15808       Tue Jul 31 11:55:55 2001
***************
*** 0 ****
--- 1,302 ----
+ +============================================================================+
+ | xsltc fails conf test numbering66                                          |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2931                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ Obtained Results
+ ================
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>. First Chapter
+ A. First Section In first Chapter
+ A. First Subsection in first Section In first Chapter
+ A. Second Subsection in first Section In first Chapter
+ A. Third Subsection in first Section In first Chapter
+ A. Fourth Subsection in first Section In first Chapter
+ A. Fifth Subsection in first Section In first Chapter
+ B. Second Section In first Chapter
+ B. First Subsection in second Section In first Chapter
+ B. Second Subsection in second Section In first Chapter
+ B. Third Subsection in second Section In first Chapter
+ B. Fourth Subsection in second Section In first Chapter
+ B. Fifth Subsection in second Section In first Chapter
+ C. Third Section In first Chapter
+ C. First Subsection in third Section In first Chapter
+ C. Second Subsection in third Section In first Chapter
+ C. Third Subsection in third Section In first Chapter
+ D. Fourth Section In first Chapter
+ D. First Subsection in fourth Section In first Chapter
+ D. Second Subsection in fourth Section In first Chapter
+ D. Third Subsection in fourth Section In first Chapter
+ D. Fourth Subsection in fourth Section In first Chapter
+ . Second Chapter
+ A. First Section In second Chapter
+ A. First Subsection in first Section In second Chapter
+ A. Second Subsection in first Section In second Chapter
+ B. Second Section In second Chapter
+ B. First Subsection in second Section In second Chapter
+ B. Second Subsection in second Section In second Chapter
+ B. Third Subsection in second Section In second Chapter
+ B. Fourth Subsection in second Section In second Chapter
+ C. Third Section In second Chapter
+ C. First Subsection in third Section In second Chapter
+ C. Second Subsection in third Section In second Chapter
+ C. Third Subsection in third Section In second Chapter
+ C. Fourth Subsection in third Section In second Chapter
+ C. Fifth Subsection in third Section In second Chapter
+ D. Fouth Section In second Chapter
+ D. First Subsection in fourth Section In second Chapter
+ D. Second Subsection in fourth Section In second Chapter
+ . Third Chapter
+ A. First Section In third Chapter
+ A. First Subsection in first Section In third Chapter
+ . Fourth Chapter
+ A. First Section In fourth Chapter
+ A. First Subsection in first Section In fourth Chapter
+ . Fifth Chapter
+ A. First Section In fifth Chapter
+ A. First Subsection in first Section In fifth Chapter
+ </out>
+ 
+ Expected Results
+ ================
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>First Chapter
+ A. First Section In first Chapter
+ A.1. First Subsection in first Section In first Chapter
+ A. Second Subsection in first Section In first Chapter
+ A. Third Subsection in first Section In first Chapter
+ A. Fourth Subsection in first Section In first Chapter
+ A. Fifth Subsection in first Section In first Chapter
+ B. Second Section In first Chapter
+ B.1. First Subsection in second Section In first Chapter
+ B. Second Subsection in second Section In first Chapter
+ B. Third Subsection in second Section In first Chapter
+ B. Fourth Subsection in second Section In first Chapter
+ B. Fifth Subsection in second Section In first Chapter
+ C. Third Section In first Chapter
+ C.1. First Subsection in third Section In first Chapter
+ C. Second Subsection in third Section In first Chapter
+ C. Third Subsection in third Section In first Chapter
+ D. Fourth Section In first Chapter
+ D.1. First Subsection in fourth Section In first Chapter
+ D. Second Subsection in fourth Section In first Chapter
+ D. Third Subsection in fourth Section In first Chapter
+ D. Fourth Subsection in fourth Section In first Chapter
+ Second Chapter
+ A. First Section In second Chapter
+ A.1. First Subsection in first Section In second Chapter
+ A. Second Subsection in first Section In second Chapter
+ B. Second Section In second Chapter
+ B.1. First Subsection in second Section In second Chapter
+ B. Second Subsection in second Section In second Chapter
+ B. Third Subsection in second Section In second Chapter
+ B. Fourth Subsection in second Section In second Chapter
+ C. Third Section In second Chapter
+ C.1. First Subsection in third Section In second Chapter
+ C. Second Subsection in third Section In second Chapter
+ C. Third Subsection in third Section In second Chapter
+ C. Fourth Subsection in third Section In second Chapter
+ C. Fifth Subsection in third Section In second Chapter
+ D. Fouth Section In second Chapter
+ D.1. First Subsection in fourth Section In second Chapter
+ D. Second Subsection in fourth Section In second Chapter
+ Third Chapter
+ A. First Section In third Chapter
+ A.1. First Subsection in first Section In third Chapter
+ Fourth Chapter
+ A. First Section In fourth Chapter
+ A.1. First Subsection in first Section In fourth Chapter
+ Fifth Chapter
+ A. First Section In fifth Chapter
+ A.1. First Subsection in first Section In fifth Chapter
+ </out>
+ 
+ 
+ XSL
+ ====
+ <xsl:template match="doc">
+   <out>
+     <xsl:apply-templates/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match="chapter//title">
+   <xsl:number level="multiple" from="chapter"
+       count="chapter|section|subsection[1]"
+       format="A.1.a. "/>
+   <xsl:value-of select="."/><xsl:text>
+ </xsl:text>
+ </xsl:template>
+ 
+ <xsl:template match="text()"><!-- To suppress empty lines
+ --><xsl:apply-templates/></xsl:template>
+ </xsl:stylesheet>
+ 
+ XML
+ ====
+ <?xml version="1.0"?> 
+ 
+ <!-- Test for source tree numbering -->
+ <doc>
+   <title>Test for source tree numbering</title>
+   <chapter>
+     <title>First Chapter</title>
+     <section>
+       <title>First Section In first Chapter</title>
+       <subsection>
+         <title>First Subsection in first Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in first Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in first Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fourth Subsection in first Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fifth Subsection in first Section In first Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Second Section In first Chapter</title>
+       <subsection>
+         <title>First Subsection in second Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in second Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in second Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fourth Subsection in second Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fifth Subsection in second Section In first Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Third Section In first Chapter</title>
+       <subsection>
+         <title>First Subsection in third Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in third Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in third Section In first Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Fourth Section In first Chapter</title>
+       <subsection>
+         <title>First Subsection in fourth Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in fourth Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in fourth Section In first Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fourth Subsection in fourth Section In first Chapter</title>
+       </subsection>
+     </section>
+   </chapter>
+   <chapter>
+     <title>Second Chapter</title>
+     <section>
+       <title>First Section In second Chapter</title>
+       <subsection>
+         <title>First Subsection in first Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in first Section In second Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Second Section In second Chapter</title>
+       <subsection>
+         <title>First Subsection in second Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in second Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in second Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fourth Subsection in second Section In second Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Third Section In second Chapter</title>
+       <subsection>
+         <title>First Subsection in third Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in third Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Third Subsection in third Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fourth Subsection in third Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Fifth Subsection in third Section In second Chapter</title>
+       </subsection>
+     </section>
+     <section>
+       <title>Fouth Section In second Chapter</title>
+       <subsection>
+         <title>First Subsection in fourth Section In second Chapter</title>
+       </subsection>
+       <subsection>
+         <title>Second Subsection in fourth Section In second Chapter</title>
+       </subsection>
+     </section>
+   </chapter>
+   <chapter>
+     <title>Third Chapter</title>
+     <section>
+       <title>First Section In third Chapter</title>
+       <subsection>
+         <title>First Subsection in first Section In third Chapter</title>
+       </subsection>
+     </section>
+   </chapter>
+   <chapter>
+     <title>Fourth Chapter</title>
+     <section>
+       <title>First Section In fourth Chapter</title>
+       <subsection>
+         <title>First Subsection in first Section In fourth Chapter</title>
+       </subsection>
+     </section>
+   </chapter>
+   <chapter>
+     <title>Fifth Chapter</title>
+     <section>
+       <title>First Section In fifth Chapter</title>
+       <subsection>
+         <title>First Subsection in first Section In fifth Chapter</title>
+       </subsection>
+     </section>
+   </chapter>
+ </doc>

Reply via email to