[Yanel-commits] rev 31938 -
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Thu Feb 14 15:29:33 CET 2008
Author: michi
Date: 2008-02-14 15:29:32 +0100 (Thu, 14 Feb 2008)
New Revision: 31938
Modified:
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
Log:
check length of xslt properties
Modified: public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2008-02-14 14:04:21 UTC (rev 31937)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2008-02-14 14:29:32 UTC (rev 31938)
@@ -106,7 +106,6 @@
String[] xsltPath = getXSLTPath(getPath());
if (xsltPath != null) {
-
// create reader:
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
CatalogResolver catalogResolver = new CatalogResolver();
@@ -716,7 +715,7 @@
*/
private String[] getXSLTPath(String path) throws Exception {
String[] xsltPath = getResourceConfigProperties("xslt");
- if (xsltPath != null) return xsltPath;
+ if (xsltPath != null && xsltPath.length > 0) return xsltPath;
log.info("No XSLT Path within: " + path);
return null;
}
More information about the Yanel-commits
mailing list