cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clark Slater <cl...@redtail.net>
Subject Re: xsl:if test
Date Mon, 17 Jul 2000 22:20:59 GMT
jari- thanks for your suggestion.
however, this doesn't seem to work.
any other suggestions?

thanks, -c

On Tue, 18 Jul 2000, Jari Aarniala wrote:

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