cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Viana <rvi...@agency.com>
Subject RE: if not working
Date Wed, 11 Apr 2001 09:41:51 GMT
Hi Rohit,

I'm not a XSL specialist but I think the problem here is the syntax you are
using is incorrect.
you say in your code: <xsl:if match=".[year='1993']">, but if I'm not wrong
you can't! use the match attribute inside a xsl:if. Use instead the test
attribute.

Success,

Roberto.

-----Original Message-----
From: Rohit Bhalerao [mailto:rohit_bhalerao@hotmail.com]
Sent: Wednesday, April 11, 2001 11:37 AM
To: cocoon-users@xml.apache.org
Subject: xsl:if not working 


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