You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2009/01/15 13:27:03 UTC
svn commit: r734683 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr:
input.xmap locationmap.xml output.xmap
Author: thorsten
Date: Thu Jan 15 04:27:03 2009
New Revision: 734683
URL: http://svn.apache.org/viewvc?rev=734683&view=rev
Log:
Using lm matches instead relative paths for the stylesheets.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap?rev=734683&r1=734682&r2=734683&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap Thu Jan 15 04:27:03 2009
@@ -42,7 +42,7 @@
<map:parameter name="destinationUrl" value="{properties:solr.select.url}"/>
</map:generate>
<map:transform type="solr"/>
- <map:transform src="resources/stylesheets/solrQueryResult-to-xdocs.xsl">
+ <map:transform src="{lm:solr.transform.solrQueryResult.xdocs}">
<map:parameter name="searchForm" value="{request:servletPath}"/>
</map:transform>
<map:serialize/>
@@ -50,7 +50,7 @@
<!--Generating xdocs-->
<map:match pattern="**.do.xml">
<map:generate src="cocoon://{1}.do"/>
- <map:transform src="resources/stylesheets/solrResult-to-xdocs.xsl">
+ <map:transform src="{lm:solr.transform.solrResult.xdocs}">
<map:parameter name="command" value="{1}"/>
</map:transform>
<map:serialize/>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml?rev=734683&r1=734682&r2=734683&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml Thu Jan 15 04:27:03 2009
@@ -28,7 +28,21 @@
</selectors>
</components>
<locator>
- <match pattern="solr.*">
+ <match pattern="solr.transform.*.*">
+ <select>
+ <location src="resources/stylesheets/{1}-to-{2}.xsl"/>
+ <location
+ src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/stylesheets/{1}-to-{2}.xsl"/>
+ </select>
+ </match>
+ <match pattern="solr.transform.*">
+ <select>
+ <location src="resources/stylesheets/{1}.xsl"/>
+ <location
+ src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/stylesheets/{1}.xsl"/>
+ </select>
+ </match>
+ <match pattern="solr.*">
<select>
<location src="resources/xml/{1}.xml"/>
<location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/xml/{1}.xml"/>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap?rev=734683&r1=734682&r2=734683&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap Thu Jan 15 04:27:03 2009
@@ -51,14 +51,14 @@
<map:match pattern="index-creation.solr.add">
<map:generate src="cocoon://abs-linkmap"/>
<map:transform src="{lm:transform.site.book}"/>
- <map:transform src="resources/stylesheets/book-to-cinclude-solr.xsl"/>
+ <map:transform src="{lm:solr.transform.book.cinclude-solr}"/>
<map:transform type="cinclude"/>
<map:serialize/>
</map:match>
<!-- Output xdocs as solr docs -->
<map:match pattern="**.solr">
<map:generate src="cocoon://{1}.xml"/>
- <map:transform src="resources/stylesheets/xdocs-to-solrDoc.xsl">
+ <map:transform src="{lm:solr.transform.xdocs.solrDoc}">
<map:parameter name="document-url" value="{1}.xml"/>
<map:parameter name="project" value="{properties:project.name}"/>
</map:transform>
@@ -68,13 +68,13 @@
<!-- ADD -->
<map:match pattern="**.solr.add">
<map:generate src="cocoon://{1}.solr"/>
- <map:transform src="resources/stylesheets/solrDoc-add.xsl"/>
+ <map:transform src="{lm:solr.transform.solrDoc-add}"/>
<map:serialize/>
</map:match>
<!-- DELETE -->
<map:match pattern="**.solr.delete">
<map:generate src="cocoon://{1}.solr"/>
- <map:transform src="resources/stylesheets/solrDoc-delete.xsl"/>
+ <map:transform src="{lm:solr.transform.solrDoc-delete}"/>
<map:serialize/>
</map:match>
<!--Testing-->