cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Using xsl:if
Date Thu, 12 Jun 2003 18:48:48 GMT
Tim Bachta wrote:
> I am trying to do an if statement to select a template according to
...
> and I want to do :
> 
> if(element(parameter-name) == BeginEndDate)
> {
>             do this;
> }
> else if (element(parameter-name) == Locations)
> {
>             do that;
> }

XSLT questions are best sent to the XSL list:
  http://www.mulberrytech.com/xsl/xsl-list/

In either case, I had a few difficulties in deciphering your
problem description, but maybe you want
   <xsl:choose>
     <xsl:when test="parameter-name='BeginEndDate'">
       do this
     </xsl:when>
     <xsl:when test="parameter-name='Locations'">
       do this
     </xsl:when>
   </xsl:choose>

Perhaps you should buy yourself a good XSLT introduction book,
the XSL FAQ linked from the URL above has a list.

J.Pietschmann


---------------------------------------------------------------------
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