Changeset 25821
- Timestamp:
- 2012-06-26T15:38:11+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r25719 r25821 807 807 GSXML.addDebugSpanTags(skinAndLibraryDoc); 808 808 } 809 809 if (output.equals("skinandlibdocfinal")) { 810 return converter.getDOM(getStringFromDocument(skinAndLibraryDoc)); 811 } 810 812 return this.transformer.transform(skinAndLibraryDoc, doc, config_params, docWithDoctype); 811 813 … … 863 865 format_doc.appendChild(format_doc.importNode(skinAndLibraryDoc.getDocumentElement().cloneNode(true), true)); 864 866 Node result = this.transformer.transform(configStylesheet_doc, format_doc, config_params); 865 866 867 if (_debug) 867 868 { … … 870 871 else 871 872 { 872 GSXSLT.mergeStylesheets(skinAndLibraryDoc, ((Document) result).getDocumentElement(), true); 873 //GSXSLT.mergeStylesheets(skinAndLibraryDoc, ((Document) result).getDocumentElement(), true); 874 // we just want the result of the transform to be in skinAndLibraryDoc 875 Element old_doc = skinAndLibraryDoc.getDocumentElement(); 876 skinAndLibraryDoc.removeChild(old_doc); 877 skinAndLibraryDoc.appendChild(skinAndLibraryDoc.importNode(((Document) result).getDocumentElement(), true)); 873 878 } 874 879 }
Note:
See TracChangeset
for help on using the changeset viewer.