cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jari Aarniala" <jari.aarni...@ioboxgroup.com>
Subject Re: xsl:if test
Date Mon, 17 Jul 2000 21:33:13 GMT
----- Original Message ----- 
From: Clark Slater <clark@redtail.net>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, July 18, 2000 12:27 AM
Subject: xsl:if test


: i want to do a replacement inside of xsl:if test and then
: check the value.  in the following code, name="{name}"
: is being resolved properly, while /page/{name} is not.
: when i hardwire the variable, ie /page/foo, the test
: works just fine.  

Instead of 

<xsl:if test="/page/{name}='t'">

try something like

<xsl:if test="/page/*[name()=name]='t'">

    Jari


Mime
View raw message