On Thursday, November 1, 2001, at 11:52 PM, Scott Sanders wrote: > Well then, just post the design problem and let it drift with us whilst we > look for the solution ;-)
sounds like a good plan :) i have a solution but i don't really like it. it smells a bit like 'clever' code and i don't like 'clever' code (especially when written by myself) ... the idea was that you could use a 'alpha/?' style pattern (found in the ExtendedBaseRules) to match all child element of <alpha> (say). this rule could set a property based on the name of the current element. unfortunately, only the element attributes and not the element name are passed into the begin method of a rule. so i can't set the property based on the element name. the usual solution would be to pass in extra parameters into the begin method - but i don't like breaking a fundamental interface without a good reason. digester is essentially single threaded and so you could add properties to digester - but that seems a bit ugly. that about where i've got to so far... - robert -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
