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/AppletAction.java

    r14226 r16688  
    1919      static Logger logger = Logger.getLogger(org.greenstone.gsdl3.action.AppletAction.class.getName());   
    2020
    21     public Element process (Element message) {
     21    public Node process (Node message_node) {
    2222   
     23    Element message = this.converter.nodeToElement(message_node);
     24
    2325    Element request = (Element)GSXML.getChildByTagName(message, GSXML.REQUEST_ELEM);
    2426    Element result = this.doc.createElement(GSXML.MESSAGE_ELEM);
Note: See TracChangeset for help on using the changeset viewer.