[Yanel-commits] rev 23010 -
public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Wed Feb 28 00:23:05 CET 2007
Author: michi
Date: 2007-02-28 00:23:03 +0100 (Wed, 28 Feb 2007)
New Revision: 23010
Modified:
public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java
Log:
global xslt fixed
Modified: public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java 2007-02-27 23:21:25 UTC (rev 23009)
+++ public/yanel/trunk/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java 2007-02-27 23:23:03 UTC (rev 23010)
@@ -341,15 +341,15 @@
}
/**
- *
* @param inputStream
* @param searchTerm
+ * @param language
* @return
*/
private InputStream applyGlobalXslIfExists(InputStream inputStream, String searchTerm, String language) {
StreamSource streamSource = null;
try {
- streamSource = getXSLTStreamSource();
+ streamSource = getGlobalXSLTStreamSource();
if(streamSource != null) {
transformer = TransformerFactory.newInstance().newTransformer(streamSource);
transformer.setParameter("yanel.path.name", PathUtil.getName(getPath()));
@@ -615,13 +615,13 @@
* @param repo
* @return StreamSource
*/
- private StreamSource getXSLTStreamSource() throws Exception {
+ private StreamSource getGlobalXSLTStreamSource() throws Exception {
String xsltPath;
ResourceConfiguration rc = getConfiguration();
if (rc != null) {
- xsltPath = rc.getProperty("xslt");
+ xsltPath = rc.getProperty("global-xslt");
} else {
- xsltPath = getRTI().getProperty("xslt");
+ xsltPath = getRTI().getProperty("global-xslt");
}
log.debug("XSLT: " + xsltPath);
if (xsltPath != null) {
More information about the Yanel-commits
mailing list