commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Wood" <richard_w...@nobilitas.com>
Subject Digester XML rules and more complex pattern evaluation (XPath)
Date Thu, 04 Aug 2005 17:12:30 GMT
Hello

A digester problem.
I'm trying to trigger different rules depending on the value of an 
attribute.
Something like this

xml
<X type="a"/>
<X type="b"/>

xml rules
<pattern value="X@type='a'">
..do something
</pattern>
<pattern value="X@type='b'">
..do something else
</pattern>

The patterns are using XPath similar notation.

How can I extend the existing DigesterRuleParser so that I can add my own 
"pattern matching" method?
I'm guessing I would have to write my own extension of RulesBase.
But how can I combine an instance of MyRulesBase with FromXMLRuleSet and 
DigesterRuleParser?

Help would be much appreciated
Thanks
    Richard


---------------------------------------------------------------------
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