This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Mod functionality in MSXML Parser (http://www.w3.org/TR/WD-xsl)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>, "'xsl-list-digest at mulberrytech dot com'" <xsl-list-digest at mulberrytech dot com>
- Subject: RE: Mod functionality in MSXML Parser (http://www.w3.org/TR/WD-xsl)
- From: Joshua Allen <joshuaa at microsoft dot com>
- Date: Fri, 11 Aug 2000 20:15:19 -0700
- Reply-To: xsl-list at mulberrytech dot com
http://www.netcrucible.com/xslt/msxml-faq.htm#Q4
Cheers,
-J
> -----Original Message-----
> From: Iyer, Srinivasan (MLIP - PCC) [mailto:ISrinivasan@NA2.US.ML.com]
> Sent: Friday, August 11, 2000 3:32 PM
> To: 'xsl-list-digest@mulberrytech.com'
> Subject: Mod functionality in MSXML Parser
> (http://www.w3.org/TR/WD-xsl)
>
>
> Hello,
> I am using the MSXML Parser and using the following namespace
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> I want to acheive the follwoing
> xsl:if test='position() mod 2 = 0'> ///////// mod &
> psoition .....
> <TR class='even' ID='Data' style='cursor:hand'
> onmouseout='javascript:RemoveHighlight()'
> onmouseover='javascript:HighlightRow()'>
> </xsl:if>
>
> my problem is I have to write the following to conform to the
> namespace
> specification
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> which supports neither mod nor position .... ;-((
>
> The only thing I could come up with is this ....
> <xsl:if expr="(childNumber(this) % 2) == 0"> but
> this does not work
> ....
>
> Is using this namespace a potential problem ??????
>
> Thanks
> Srini
>
>
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list