You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rohit Bhalerao <ro...@hotmail.com> on 2001/04/11 12:51:27 UTC
RE: if not working
hi Roberto,
thanks a lot for ur help.It did work by..
<xsl:if test="year[text()!=1993]">
<tr>
<td bgcolor="#eefefe"> <xsl:value-of select="year"/></td>
<td bgcolor="#eefefe"><xsl:value-of select="winner"/></td>
<td bgcolor="#eefefe"><xsl:value-of select="runner_up"/></td>
</tr>
</xsl:if>
Thanks once again,
Rohit
>From: Roberto Viana <rv...@agency.com>
>Reply-To: cocoon-users@xml.apache.org
>To: "'cocoon-users@xml.apache.org'" <co...@xml.apache.org>
>Subject: RE: if not working
>Date: Wed, 11 Apr 2001 11:41:51 +0200
>
>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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>
_________________________________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>