On Thu, 30 Aug 2001, Nino Walker wrote:
> Date: Thu, 30 Aug 2001 11:50:22 -0700
> From: Nino Walker <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Using a Digester to bootstrap another Digester?
>
> Hi,
>
> I've been using the digester very successfully, but have found the most
> tedious part of using it to be adding rules (especially for complex XML
> formats).
>
> Has anyone developed a Digester/DTD for creating other XML configured
> Digesters? I think it would be a useful addition to the toolkit...
>
I haven't done something like this, but I did recently add the idea of a
RuleSet, which lets you encapsulate a set of rules that are related to
each other. This is being used in the "workflow" project (currently in
jakarta-commons-sandbox) if you want to get a flavor for how it works.
One of the things I've noticed in using Digester is that the actual rule
creation is not always amenable to being represented statically. I've
often found it useful, for example, to calculate the matching pattern a
rulle will apply to based on a calculated prefix plus a static suffix --
and in some cases the rules to apply for a particular pattern might be
sensitive to runtime conditions (such as which JDK you are running on).
As a result, I've never really tried to focus on the kind of bootstrapping
you suggest -- but it would be interesting to see if someone could define
useful tools in that direction.
> Thanks,
>
> Nino
>
>
Craig