This should work fine although I don't have XalanJ 1.1 any more to test
it.  Can you supply the full XML and XSLT so that we can try to
reproduce the problem?

Gary

Tzu-jan Li wrote:
> 
> Hi,
> 
>   This peice of code won't work correctly when I transform it
> using Xalan:
> 
> --- snip ---
> <xsl:template match="item">
>   <tr>
>     <xsl:if test="position() mod 2 = 0">
>        <xsl:attribute name="bgcolor">yellow</xsl:attribute>
>     </xsl:if>
>     <xsl:apply-templates/>
>   </tr>
> </xsl:template>
> --- snip ---
> 
>   ....according to
> http://www.w3.org/TR/xslt#section-Conditional-Processing-with-xsl:if
> ...the code should color "every other table row yellow". it
> works using MSXML 3.0, but when using Xalan 1.1 - it simply
> colors every table row. I didn't find any mention of this bug at
> the Xalan site, so I thought I'd mention it.
> 
>   - Devon
> 
> PS. to the developers who've made Xalan what it is so far,
>     THANK YOU. I love it. :)
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/

Reply via email to