xsl-list
[Top] [All Lists]

RE: Expected token 'eof' encountered '['

2003-07-09 08:41:18
perhaps

<xsl:when test="(_dot_)[(_at_)genre='Romance']">

-----Original Message-----
From: Tengshe, Ashish [mailto:Tengshe(_dot_)Ashish(_at_)principal(_dot_)com]
Sent: 09 July 2003 16:15
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Expected token 'eof' encountered '['


I'm getting the following error when trying to transform using MSXML/IE6.0

Expected token 'eof' found '['. .-->[<--genre='Romance']

The code in question is 

<xsl:choose>
   <xsl:when test=".[genre='Romance']">
      <td bgcolor="#ff6666">
  <xsl:value-of select="genre" /></td>  
   </xsl:when>
   <xsl:otherwise>
     <td bgcolor="#ccccff">
  <xsl:value-of select="genre" /></td>  
   </xsl:otherwise>
</xsl:choose>

Can anyone help me solve this?
I don't want to change engines as I need this (XML) to render directly in IE6.0.
I appreciate your help!

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



<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com";>www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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