commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: [jelly][xml][jsl] how to create dom4j element variable in script block
Date Thu, 16 Sep 2004 13:12:43 GMT
That's one of the greatest strengths of jelly xml pipeline...
<x:parse var="blop">
	<!-- output some XML -->
	<a x="b"><b/></a>

On blop you can now use XPath or some programmatic access, it'll be a 
dom4j-document (e.g. ${blop.getRootElement().getAttributeValue('x')} )


Le 16 sept. 04, à 13:59, Marc DEXET a écrit :

> Now I'm trying to put in context the rule var associated to rule body
> evaluation.
> AND I would the var to be a dom4j node (or list of dom4j nodes).
> How I could do this ?
> One way is to create an Writer for output and parse the result of
> writer.toString() back.
> But it's not elegant nor efficient.
> Somebody has another trail to follow ?

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

View raw message