xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David_N_Bert...@lotus.com
Subject Re: Colored table :)
Date Tue, 28 Mar 2000 15:59:41 GMT

Hi Sean,

The mod operator is definitely part of the XPath standard.

Dave



                                                                                         
                                                  
                    "Sean Kelly"                                                         
                                                  
                    <kelly@mail2a.jpl        To:     <general@xml.apache.org>   
                                                           
                    .nasa.gov>               cc:     (bcc: David N Bertoni/CAM/Lotus) 
                                                     
                                             Subject:     Re: Colored table :)           
                                                  
                    03/28/2000 09:46                                                     
                                                  
                    AM                                                                   
                                                  
                    Please respond to                                                    
                                                  
                    general                                                              
                                                  
                                                                                         
                                                  
                                                                                         
                                                  



> <xsl:template match="blk_item[position() div 2 != floor(position() div
2)]">

Nice trick.  On Xalan 1.0.0, the following also works:

<xsl:template match="blk_item[position() mod 2 = 0]">

Whether "mod" is a Xalan extension or a legal XPath expression ... I don't
know.

Take care.
--Sean


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org






Mime
View raw message