The following works correctly:

   <xsl:template match="figure">Figure <xsl:number level="any" count
   ="chapter"/>.<xsl:number level="any" from="chapter" count="figure[not
   (@numbered='no') or not(@numbered)]"/>

Mike's version does not.

Dave



                                                                                       
      
                    David_Marston                                                      
      
                    @lotus.com           To:     [EMAIL PROTECTED]              
      
                                         cc:     (bcc: David N Bertoni/CAM/Lotus)      
      
                    07/24/2001           Subject:     Re: Xalan-C++ bug: xsl:number 
not      
                    02:27 PM             reporting correct info                        
      
                    Please                                                             
      
                    respond to                                                         
      
                    xalan-dev                                                          
      
                                                                                       
      
                                                                                       
      




Mike Hostetler says he's getting a bad number from
<xsl:number level="any" count="//chapter"/>

We have quite a few tests for xsl:number, so I'm concerned that this was
able to slip through. Since count is a pattern, you should be able to say
count="chapter"
and get the same result. Mike: can you try that and report if it makes
any difference?
.................David Marston





Reply via email to