xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: ie5 question


Subject: RE: ie5 question
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Fri, 28 Apr 2000 10:10:48 -0700

In IE5, the expr attribute accepts a script expression, not an XPath.  See
http://msdn.microsoft.com/isapi/msdnlib2.idc?theURL=/library/psdk/xmlsdk/xsl
p2elv.htm for an example of even/odd detection in IE5.

- Jonathan Marsh
  Microsoft

> -----Original Message-----
> From: Will Fraser [mailto:wfraser@xxxxxxx]
> Sent: Thursday, April 27, 2000 4:55 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: ie5 question
> 
> 
>     I've checked, and I don't think this is a FAQ.  If it is, 
> my apologies.
>     I'm using ie5 to process soem xml/xsl into html.  I'm 
> getting a weird
> Jscript error.  Specifically:
> 
> Microsoft JScript compilation error Expected ')' line = 1, 
> col = 13 (line is
> offset from the tag). [(position() mod 2) = 0]
> 
> I think my code is correct, but being new to this could 
> likely be wrong.  Is
> this a problem with ie5 or myself?  Could someone kindly 
> point out what is
> causing this error?  Following is the code:
> 
>    <xsl:attribute name="class">
>    <xsl:choose>
>     <!-- When the row is even color it darker than the rest -->
>     <!-- <xsl:when expr="[(position() mod 2) = 0]"> darkgreybground
> </xsl:when>
>     <xsl:otherwise>lightgreybground</xsl:otherwise>
>    </xsl:choose>
>    </xsl:attribute>
> 
> Many thanks.  Will Fraser
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • ie5 question
    • Will Fraser - Thu, 27 Apr 2000 19:54:57 -0400
      • <Possible follow-ups>
      • Jonathan Marsh - Fri, 28 Apr 2000 10:10:48 -0700 <=
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor