cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: dynamic node selection
Date Thu, 24 Jul 2003 12:03:54 GMT
Maybe I'm petty, but ...

Conal Tuohy wrote:
> 
> if $parent="foo" and $child="bar" then:
> 
> /*[local-name()=$parent][*[local-name()=$child]]

should return all nodes matching the XPath "/foo" and having a child 
node named "bar".

/*[local-name()=$parent]/*[local-name()=$child]

> should return all nodes which match the xpath "/foo/bar"
> 
> Cheers
> 
> Con

Joerg


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


Mime
View raw message