Bugs item #1077692, was opened at 2004-12-02 08:20 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1077692&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: No fireRule() for Node Initial Comment: The last change to support the attribute mode for applyTemplates, breaks the recursion of fire rule. Solution: public void applyTemplates(Object input, String mode) throws Exception { // iterate through all children Mode mod = ruleManager.getMode(mode); if ( input instanceof Element ) { mod.applyTemplates( (Element) input ); } else if ( input instanceof Document ) { mod.applyTemplates( (Document) input ); } else if ( input instanceof List ) { List list = (List) input; for ( int i = 0, size = list.size(); i < size; i++ ) { Object object = list.get(i); if ( object != input ) { // FIX: if(object instanceof Node) { run((Node) object); } if ( object instanceof Element ) { mod.applyTemplates( (Element) object ); } else if ( object instanceof Document ) { mod.applyTemplates( (Document) object ); } } } } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1077692&group_id=16035 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev