Changeset 25988
- Timestamp:
- 2012-07-19T15:39:33+12:00 (11 years ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r25987 r25988 739 739 } 740 740 741 GSXSLT.inlineImportAndIncludeFiles(skinAndLibraryDoc, null, (String) this.config_params.get(GSConstants. INTERFACE_NAME));741 GSXSLT.inlineImportAndIncludeFiles(skinAndLibraryDoc, null, (String) this.config_params.get(GSConstants.SITE_NAME), collection, (String) this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces); 742 742 skinAndLibraryDoc = (Document) secondConfigFormatPass(collection, skinAndLibraryDoc, doc, new UserContext(request)); 743 743 -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXSLT.java
r25987 r25988 220 220 } 221 221 222 public static void inlineImportAndIncludeFiles(Document doc, String pathExtra, String interface_name)223 { 224 inlineImportAndIncludeFilesDebug(doc, pathExtra, false, null, interface_name);225 } 226 227 public static void inlineImportAndIncludeFilesDebug(Document doc, String pathExtra, boolean debug, String docFileName, String interface_name)222 public static void inlineImportAndIncludeFiles(Document doc, String pathExtra, String site, String collection, String interface_name, ArrayList<String> base_interfaces) 223 { 224 inlineImportAndIncludeFilesDebug(doc, pathExtra, false, null, site, collection, interface_name, base_interfaces); 225 } 226 227 public static void inlineImportAndIncludeFilesDebug(Document doc, String pathExtra, boolean debug, String docFileName, String site, String collection, String interface_name, ArrayList<String> base_interfaces) 228 228 { 229 229 XMLConverter converter = new XMLConverter(); … … 238 238 Element current = (Element) ((i < importList.getLength()) ? importList.item(i) : includeList.item(i - importList.getLength())); 239 239 String href = current.getAttribute("href"); 240 String filePath = GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), interface_name) + File.separator + "transform" + File.separator + path.replace("/", File.separator) + href.replace("/", File.separator);240 //String filePath = GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), interface_name) + File.separator + "transform" + File.separator + path.replace("/", File.separator) + href.replace("/", File.separator); 241 241 //String filePath = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), site_name, collection, interface_name, base_interfaces, 242 242 243 243 try 244 244 { 245 246 245 //Document inlineDoc = converter.getDOM(new File(filePath), "UTF-8"); 246 Document inlineDoc = mergedXSLTDocumentCascade(path+href, site, collection, interface_name, base_interfaces, debug); 247 247 String newPath = path; 248 248 int lastSepIndex = href.lastIndexOf("/"); … … 253 253 254 254 //Do this recursively 255 inlineImportAndIncludeFilesDebug(inlineDoc, newPath, debug, filePath, interface_name);256 257 GSXSLT.mergeStylesheetsDebug(doc, inlineDoc.getDocumentElement(), false, debug, docFileName, filePath);255 inlineImportAndIncludeFilesDebug(inlineDoc, newPath, debug, "merged "+href/*filePath*/, site, collection, interface_name, base_interfaces); 256 257 GSXSLT.mergeStylesheetsDebug(doc, inlineDoc.getDocumentElement(), false, debug, docFileName, /*filePath*/"merged "+href); 258 258 } 259 259 catch (Exception ex)
Note:
See TracChangeset
for help on using the changeset viewer.