[Yanel-commits] rev 34957 - public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Tue Apr 8 00:22:23 CEST 2008


Author: michi
Date: 2008-04-08 00:22:22 +0200 (Tue, 08 Apr 2008)
New Revision: 34957

Modified:
   public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
Log:
check for rthdocs scheme

Modified: public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
===================================================================
--- public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java	2008-04-07 22:21:47 UTC (rev 34956)
+++ public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java	2008-04-07 22:22:22 UTC (rev 34957)
@@ -260,6 +260,9 @@
                 if (xsltPaths[i].startsWith("file:")) {
                     log.warn("Scheme: file (" + xsltPaths[i] + ")");
                     xsltHandlers[i] = tf.newTransformerHandler(new StreamSource(new java.io.FileInputStream(xsltPaths[i].substring(5))));
+                } else if(xsltPaths[i].startsWith("rthtdocs:")) {
+                    log.warn("Scheme: rthtdocs (" + xsltPaths[i] + ")");
+                    xsltHandlers[i] = tf.newTransformerHandler(new org.wyona.yanel.core.source.RTHtdocsResolver(this).resolve(xsltPaths[i], null));
                 } else {
                     xsltHandlers[i] = tf.newTransformerHandler(new StreamSource(repo.getNode(xsltPaths[i]).getInputStream()));
                 }



More information about the Yanel-commits mailing list