You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Paul Libbrecht <pa...@activemath.org> on 2004/07/16 13:31:43 UTC
[jelly] copying all children nodes ?
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 ?
paul
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org