[Yanel-commits] rev 28218 -
public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/collection
michi at wyona.com
michi at wyona.com
Mon Oct 29 09:51:58 CET 2007
Author: michi
Date: 2007-10-29 09:51:57 +0100 (Mon, 29 Oct 2007)
New Revision: 28218
Modified:
public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/collection/CollectionResource.java
Log:
stream source fixed
Modified: public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/collection/CollectionResource.java
===================================================================
--- public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/collection/CollectionResource.java 2007-10-29 08:39:08 UTC (rev 28217)
+++ public/yanel/trunk/src/resources/directory/src/java/org/wyona/yanel/impl/resources/collection/CollectionResource.java 2007-10-29 08:51:57 UTC (rev 28218)
@@ -192,13 +192,12 @@
*
*/
private StreamSource getXSLTStreamSource() throws Exception {
- File defaultXSLTFile = org.wyona.commons.io.FileUtil.file( rtd.getConfigFile().getParentFile().getAbsolutePath(), "xslt" + File.separator + "dir2xhtml.xsl");
-
String customDefaultXSLT = getResourceConfigProperty("default-xslt");
if (customDefaultXSLT != null) {
- defaultXSLTFile = new File(customDefaultXSLT);
+ return new StreamSource(getRealm().getRepository().getNode(customDefaultXSLT).getInputStream());
}
+ File defaultXSLTFile = org.wyona.commons.io.FileUtil.file(rtd.getConfigFile().getParentFile().getAbsolutePath(), "xslt" + File.separator + "dir2xhtml.xsl");
if (log.isDebugEnabled()) log.debug("XSLT file: " + defaultXSLTFile);
return new StreamSource(defaultXSLTFile);
}
More information about the Yanel-commits
mailing list