cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Johnson <bljohn...@gmail.com>
Subject Re: XPath Functions in JXTemplate
Date Thu, 09 Dec 2004 17:34:39 GMT
Yeah I tried moving the starts-with inside the brackets but it errored
out saying it got a "(" when it expected something else.  But thanks
for reminding me that I can simply use the Java startsWith() method. 
Dunno why I didnt think of that :)

Thanks so much,

- Brent

On Thu, 9 Dec 2004 18:28:51 +0100, H.vanderLinden@mi.unimaas.nl
<H.vanderLinden@mi.unimaas.nl> wrote:
> Hi,
> 
> > <jx:choose>
> > <jx:when test="starts-with('${colors.get(block.getColor())}','/')">
> 
> Try: <jx:when test="#{starts-with(color.get(block.getColor()), '/')}">
> 
> (#{} = xpath, ${} = jexl)
> 
> For me using the java versions usually work:
> 
> <jx:when test= "${color.get(block.getColor()).startswith('/')}">
> 
> HTH.
> 
> Bye, Helma
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message