commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
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 ?

paul


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message