Ignore:
Timestamp:
2012-11-14T15:37:35+13:00 (11 years ago)
Author:
sjm84
Message:

Phase one of commiting the improved debugging system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r26426 r26458  
    924924        }
    925925
    926         GSXSLT.inlineImportAndIncludeFiles(skinAndLibraryDoc, null, (String) this.config_params.get(GSConstants.SITE_NAME), collection, (String) this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);
     926        if (_debug)
     927        {
     928            GSXSLT.inlineImportAndIncludeFilesDebug(skinAndLibraryDoc, null, _debug, this.getGSLibXSLFilename(), (String) this.config_params.get(GSConstants.SITE_NAME), collection, (String) this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);
     929        }
     930        else
     931        {
     932            GSXSLT.inlineImportAndIncludeFiles(skinAndLibraryDoc, null, (String) this.config_params.get(GSConstants.SITE_NAME), collection, (String) this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);
     933        }
    927934        skinAndLibraryDoc = (Document) performFormatPass(collection, skinAndLibraryDoc, doc, new UserContext(request), TEXT_PASS);
    928935        skinAndLibraryDoc = (Document) performFormatPass(collection, skinAndLibraryDoc, doc, new UserContext(request), CONFIG_PASS);
    929936
     937        if (output.equals("xmlfinal"))
     938        {
     939            return doc;
     940        }
     941
     942        if (output.equals("skinandlibdocfinal"))
     943        {
     944            return converter.getDOM(getStringFromDocument(skinAndLibraryDoc));
     945        }
     946
     947        Node finalResult = this.transformer.transform(skinAndLibraryDoc, doc, config_params, docWithDoctype);
     948
    930949        if (_debug)
    931950        {
    932             GSXML.addDebugSpanTags(skinAndLibraryDoc);
    933         }
    934 
    935         if (output.equals("xmlfinal"))
    936         {
    937             return doc;
    938         }
    939 
    940         if (output.equals("skinandlibdocfinal"))
    941         {
    942             return converter.getDOM(getStringFromDocument(skinAndLibraryDoc));
    943         }
    944 
    945         return this.transformer.transform(skinAndLibraryDoc, doc, config_params, docWithDoctype);
     951            GSXSLT.fixTables((Document) finalResult);
     952        }
     953
     954        return finalResult;
    946955
    947956        // The line below will do the transformation like we use to do before having Skin++ implemented,
Note: See TracChangeset for help on using the changeset viewer.