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=2900

*** shadow/2900 Mon Jul 30 12:36:21 2001
--- shadow/2900.tmp.28299       Mon Jul 30 12:36:21 2001
***************
*** 0 ****
--- 1,153 ----
+ +============================================================================+
+ | xsltc fails conf test numberformat45 with odd and even counts              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2900                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ This test has multiple <xsl:number> instructions. Saxon, Xalan, and XT all
+ produce the expected results. 
+ 
+ Expected Results
+ ================
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+   A-(1) aaa
+ B-(1) bbb
+ C-(2) ccc
+ D-(2) ddd
+ E-(3) eee
+ F-(3) fff
+ G-(4) ggg
+ H-(4) hhh
+ I-(5) iii
+ J-(5) jjj
+ K-(6) kkk
+ L-(6) lll
+ M-(7) mmm
+ N-(7) nnn
+ O-(8) ooo
+ P-(8) ppp
+ Q-(9) qqq
+ R-(9) rrr
+ S-(10) sss
+ T-(10) ttt
+ U-(11) uuu
+ V-(11) vvv
+ W-(12) www
+ X-(12) xxx
+ Y-(13) yyy
+ 
+ </out>
+ 
+ Obtained Results
+ ================
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>
+   A-(1) aaa
+ B-(2) bbb
+ C-(3) ccc
+ D-(4) ddd
+ E-(5) eee
+ F-(6) fff
+ G-(7) ggg
+ H-(8) hhh
+ I-(9) iii
+ J-(10) jjj
+ K-(11) kkk
+ L-(12) lll
+ M-(13) mmm
+ N-(14) nnn
+ O-(15) ooo
+ P-(16) ppp
+ Q-(17) qqq
+ R-(18) rrr
+ S-(19) sss
+ T-(20) ttt
+ U-(21) uuu
+ V-(22) vvv
+ W-(23) www
+ X-(24) xxx
+ Y-(25) yyy
+ 
+ </out>
+ 
+ XSL
+ ===
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- CaseName: numbering45 -->
+   <!-- Author: David Marston -->
+   <!-- Purpose: Test more than one xsl:number counter active at the same time.
+ -->
+   <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1"
+ place="id(number)/ulist[1]/item[2]/p[1]/text()[1]" -->
+   <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1"
+ place="id(convert)/p[2]/text()[5]" -->
+   <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1"
+ place="id(convert)/ulist[1]/item[1]/p[1]/text()[1]" -->
+   <!-- Scenario: operation="standard-XML" -->
+ 
+ <xsl:template match="doc">
+   <out>
+     <xsl:apply-templates/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match="chapter">
+   <xsl:for-each select="note">
+     <xsl:number format="A-" count="note" />
+     <xsl:if test="position() mod 2 = 0">
+       <xsl:number format="(1) " count="note[position() mod 2 = 0]" />
+     </xsl:if>
+     <xsl:if test="position() mod 2 = 1">
+       <xsl:number format="(1) " count="note[position() mod 2 = 1]" />
+     </xsl:if>
+     <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
+   </xsl:for-each>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ XML
+ ===
+ <?xml version="1.0"?>
+ <doc>
+   <chapter>
+     <note>aaa</note>
+     <note>bbb</note>
+     <note>ccc</note>
+     <note>ddd</note>
+     <note>eee</note>
+     <note>fff</note>
+     <note>ggg</note>
+     <note>hhh</note>
+     <note>iii</note>
+     <note>jjj</note>
+     <note>kkk</note>
+     <note>lll</note>
+     <note>mmm</note>
+     <note>nnn</note>
+     <note>ooo</note>
+     <note>ppp</note>
+     <note>qqq</note>
+     <note>rrr</note>
+     <note>sss</note>
+     <note>ttt</note>
+     <note>uuu</note>
+     <note>vvv</note>
+     <note>www</note>
+     <note>xxx</note>
+     <note>yyy</note>
+   </chapter>
+ </doc>

Reply via email to