commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject Re: [Digester] Bug in parsing of xml specified rule for call-method-rule?
Date Thu, 03 Feb 2005 00:21:13 GMT
From: "Kartik Asatkar" <>
> The attribute "targetoffset=n" for element call-method-rule is not
> present in the digester-rules.dtd v1.12.6.1.
> Similar functionality is available if the rule is constructed
> programmatically using class CallMethodRule (constructor
> CallMethodRule(int targetOffset, java.lang.String methodName))
> Can the targetoffset be specified when rules are specified in an xml
> file or is it a bug?

I'm going to guess that it's just missing... I found something similar when
I started using xml rules.  I opened a Bugzilla ticket and my patch was
accepted and applied very quickly, so I'd suggest you do the same if you
really need this.

May I ask why you're using xml rules instead of doing it in Java code?  It
may be that using code-based rules would be a better solution-- it was for
me.  (I didn't have any special reason for using xml rules... they were
there, it seemed like a good idea...)

Simon Kitching's comments on this bug may be enlightening:

Wendy Smoak

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

View raw message