commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject [jelly] copying all children nodes ?
Date Fri, 16 Jul 2004 11:31:43 GMT
This is something which surprises me everytime... I seem to have no way 
to copy all child-nodes of an element in the XML-taglibrary...
	<x:copyOf select="$elt/*"/>
will only copy the child-elements
	<x:copyOf select="$elt/*|text()"/>
will copy elements and text children, but not the others,... and they 
won't be ordered by occurrence (this might be a big of jaxen).

So that the way I finally found is:
  <j:forEach items="${elt.nodeIterator()}" var="e">
	<x:copyOf select="$e/"/></j:forEach>

Which works very fine!
Has anyone found better ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message