You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dave Garthwaite <da...@icommobile.com> on 2003/03/26 20:05:34 UTC

[Jelly] How to select an XML node where attribute = a jelly var

I have parsed an XML doc using <parse>.
I want to select a node where an attribute equals the value of a jelly variable.
I tried <jx:set var="sourceNode" select="$doc/source[@name='${sourceName}']"/> but this does not work.
If I use a literal instead of ${sourceName}, it does work.
What am I doing wrong ?