cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Bayer <ba...@oio.de>
Subject xsl:if not working
Date Wed, 11 Apr 2001 09:46:31 GMT
Hallo,

try:

<xsl:if match="year[text()=1993]">

Thomas Bayer

-----------------------------
Orientation in Objects GmbH
Weinheimer Str. 68
68309 Mannheim
http://www.oio.de


Rohit Bhalerao writes:
 > hi all,
 > I am using cocoon-1.8.2 on iPlanet 4.1.
 > when I am using xsl:if tag its giving me exceptions like
 > 
 > org.apache.xalan.xslt.XSLProcessorException:
 >               at 
 > org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java, Compiled 
 > Code)
 >               at java.lang.Exception.<init>(Exception.java, Compiled Code)
 > 
 > .
 > .
 > .
 > .
 > 
 > My code in the xsl is like this..
 > 
 > <xsl:for-each select="title1/chess" >
 > <xsl:if match=".[year='1993']">
 > 	<tr>
 >         <td bgcolor="#ffccFF">
 > 	<font face="Arial" size="2" color="#FF3333">
 > 	<center>
 > 	 <xsl:value-of select="winner"/>
 > 	</center>
 > 	</font>
 > 	</td>
 >         </tr>
 > </xsl:if>
 > </xsl:for-each>
 > 
 > 
 > Where I am going wrong? please help me.I tried using
 > 
 > <xsl:if match="child::year=1993">
 > 
 > but it din't work.Please help me,
 > Thanks in advance,
 > Rohit
 > 
 > 
 > 
 > _________________________________________________________________________
 > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
 > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
 > 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message