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.28917 Mon Jul 30 12:57:31 2001 *************** *** 5,11 **** | 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] | --- 5,11 ---- | Status: NEW Version: CurrentCVS | | Resolution: Platform: All | | Severity: Normal OS/Version: All | ! | Priority: Medium Component: org.apache.xalan.xsltc | +----------------------------------------------------------------------------+ | Assigned To: [EMAIL PROTECTED] | | Reported By: [EMAIL PROTECTED] | *************** *** 150,153 **** --- 150,234 ---- <note>xxx</note> <note>yyy</note> </chapter> + </doc> + + ------- Additional Comments From [EMAIL PROTECTED] 2001-07-30 12:57 ------- + numbering52 is very similar and may have the same problem as numbering45. + + Expected Ouput + ============== + <?xml version="1.0" encoding="UTF-8"?> + <out>1: aaa + : bbb + 2: ccc + 1: ddd + : eee + 2: fff + : ggg + 3: hhh + : iii + 1: jjj + : kkk + 2: lll + 4: mmm + : nnn + 5: ooo + </out> + + Obtained Ouput + ============== + <?xml version="1.0" encoding="UTF-8"?> + <out>1: aaa + : bbb + 2: ccc + 1: ddd + : eee + 2: fff + : ggg + 3: hhh + : iii + 1: jjj + : kkk + 2: lll + 4: mmm + : nnn + 5: ooo + </out> + + + XSL + === + Here's the important part of the xsl: + + <xsl:template match="note"> + <xsl:number level="single" count="note[position() mod 2 = 1]" + format="1"/><xsl:text>: </xsl:text><xsl:value-of select="."/><xsl:text> + </xsl:text> + </xsl:template> + + + + XML + === + <?xml version="1.0"?> + <doc> + <note>aaa</note> + <note>bbb</note> + <note>ccc</note> + <chapter> + <note>ddd</note> + <note>eee</note> + <note>fff</note> + </chapter> + <note>ggg</note> + <note>hhh</note> + <note>iii</note> + <chapter> + <note>jjj</note> + <note>kkk</note> + <note>lll</note> + </chapter> + <note>mmm</note> + <note>nnn</note> + <note>ooo</note> </doc>
