commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
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" <krakhack@gmail.com>
> 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:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33001#c20

-- 
Wendy Smoak



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