Ignore:
Timestamp:
2008-08-08T13:23:59+12:00 (16 years ago)
Author:
davidb
Message:

Changed 'Element process(Element)' in ModuleInterface to 'Node process(Node)'. After some deliberation is was decided this is a more useful (generic) layer of the DOM to pass information around in. Helps with the DocType problem when producing XSL Transformed pages, for example. When this was an Element, it would loose track of its DocType. Supporting method provided in XMLConverter 'Element nodeToElement(Node)' which checks a nodes docType and casts to Element if appropriate, or if a Document, typecasts to that and then extracts the top-level Element. With this fundamental change in ModuleInterface, around 20 files needed to be updated (Actions, Services, etc) that build on top of 'process()' to reflect this change, and use nodeToElement where necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/action/Action.java

    r13270 r16688  
    6262        return null;
    6363    }
    64     Element result = process(message_doc.getDocumentElement());
     64    Node result = process(message_doc);
    6565    return this.converter.getString(result);
    6666    }
    6767   
    6868    /** the main process method - must be implemented in subclass */
    69     abstract public Element process(Element xml_in);
     69    abstract public Node process(Node xml_in);
    7070
    7171    /** tell the param class what its arguments are
Note: See TracChangeset for help on using the changeset viewer.