commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc DEXET <Marc.De...@dsi.cnrs.fr>
Subject [jelly][xml][jsl] how to create dom4j element variable in script block
Date Thu, 16 Sep 2004 11:59:29 GMT
Hello everbody.
I'm still stuck in my ruled process engin.
My concern is the following :
I get rules with var call catching system that assumes ordering firing
between rules (it's OK)
[see thread "[Jelly][HowTo] Catch var call"]

Rules are written this way
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:r="jelly:photon">
	<r:ruleSet var="rs">
		<r:rule var="var1">
			<...body...>
		</r:rule>
	
		<r:rule var="var2">
			<...body....>
		</r:rule>
	</r:ruleSet>

	<!-- execution of rule set -->
	<r::ruleEngine ruleSet="${rs}"/>
</j:jelly>


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 ?

Thanks.

............................................
Marc DeXeT
Direction des Systèmes d'Informations
Centre National de la Recherche Scientifique
                ~ * ~
Information System Direction
National Center for Scientific Research
http://www.cnrs.fr 
............................................


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message