forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r493909 [1/2] - in /forrest/trunk/whiteboard/plugins: ./ org.apache.forrest.plugin.output.solr/ org.apache.forrest.plugin.output.solr/conf/ org.apache.forrest.plugin.output.solr/lib/ org.apache.forrest.plugin.output.solr/resources/ org.apac...
Date Mon, 08 Jan 2007 02:22:24 GMT
Author: thorsten
Date: Sun Jan  7 18:22:22 2007
New Revision: 493909

URL: http://svn.apache.org/viewvc?view=rev&rev=493909
Log:
Adding a solr output plugin. 

Generates solr documents from xdos. Further when run with the dispatcher
      it provides a GUI to manage your project in solr and a search interface to search your solr
      server.

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/conf/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/favicon.ico   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group-logo.gif   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/icon.png   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project-logo.gif   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/usemap.gif   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/index.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/screenshots.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/site.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/tabs.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/images/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/images/gui-actionbar.png   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/images/gui-search.png   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/images/gui.png   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/images/result.png   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/structurer/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/structurer/url/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/resources/structurer/url/pelt.fv   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/skinconf.xml   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/http/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/http/client/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/http/client/PostFile.java   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/http/client/TestPostFile.java   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrQueryTransformer.java   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/solr/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/solr/client/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/readme.txt   (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/status.xml   (with props)
Modified:
    forrest/trunk/whiteboard/plugins/whiteboard-plugins.xml

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml Sun Jan  7 18:22:22 2007
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project default="docs" basedir="." name="Forrest org.apache.forrest.plugin.output.solr build file">
+  <property name="plugin-name" value="org.apache.forrest.plugin.output.solr"/>
+  <property name="forrest.version" value="0.8"/>
+  <property name="type" value="output"/>
+  <property name="plugin-version" value="0.1"/>
+  <property name="description" value="generates solr documents from xdos"/>
+  <property name="author" value="Apache Forrest Project"/>
+  <property name="websiteURL" value="http://localhost:8888/docs/plugins/org.apache.forrest.plugin.output.solr"/>
+  <property name="downloadURL" value="http://localhost:8888/plugins/"/>
+  
+  <import file="../build.xml"/>
+
+  <!-- Add any additional installation work here in the build target, for example:
+  <target name="build"
+          description="Extract the tools">
+     <unzip dest="${plugins.localDeploy-dir}/${plugin-name}/resources">
+       <fileset dir="tools">
+          <include name="pluginBionaryTools.zip"/>
+        </fileset>
+     </unzip>   
+  </target>
+  -->
+</project>
+  
+  

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml Sun Jan  7 18:22:22 2007
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<properties>
+  <property name="solr.select.url" value="http://localhost:8983/solr/select"/>
+  <property name="solr.update.url" value="http://localhost:8983/solr/update"/>
+</properties>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/default.plugin.properties.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties Sun Jan  7 18:22:22 2007
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+##############
+# This is a minimal properties file.
+# These are defaults, un-comment them only if you need to change them.
+# See the full set of default properties in a 'forrest seed-sample' site.
+# Copy properties from there as needed.
+##############
+
+# FIXME: FOR-785
+forrest.validate.skinconf=false
+
+project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.output.solr,org.apache.forrest.plugin.input.projectInfo,org.apache.forrest.plugin.internal.dispatcher,org.apache.forrest.themes.core,org.apache.forrest.plugin.output.inputModule

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/forrest.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 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?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap Sun Jan  7 18:22:22 2007
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="request"
+        src="org.apache.cocoon.generation.RequestGenerator"/>
+    </map:generators>
+    <map:transformers default="xslt">
+      <map:transformer logger="sitemap.transformer.solr" name="solr" pool-max="16" 
+        src="org.apache.forrest.solr.client.SolrQueryTransformer" />
+    </map:transformers>
+  </map:components>
+  <map:pipelines>
+    <map:pipeline>
+      <!-- Will dispatch a query against the solr server -->
+      <map:match pattern="solr-search.xml">
+        <map:generate type="request"/>
+        <map:transform src="resources/stylesheets/query-to-cinclude-solr.xsl">
+          <map:parameter name="host" value="{properties:solr.select.url}"/>
+        </map:transform>
+        <map:transform type="cinclude"/>
+        <map:transform type="solr"/>
+        <map:transform src="resources/stylesheets/solrQueryResult-to-xdocs.xsl">
+          <map:parameter name="command" value="{1}"/>
+          <map:parameter name="searchForm" value="{request:servletPath}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!--Generating xdocs-->
+      <map:match pattern="**.do.xml">
+        <map:generate src="cocoon://{1}.do"/>
+        <map:transform src="resources/stylesheets/solrResult-to-xdocs.xsl">
+          <map:parameter name="command" value="{1}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt Sun Jan  7 18:22:22 2007
@@ -0,0 +1 @@
+Place any libraries required by your plugin in this directory.
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/lib/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 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?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml Sun Jan  7 18:22:22 2007
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
+
+  <components>
+    <matchers default="lm">
+      <matcher 
+        name="lm" 
+        src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
+    </matchers>
+    <selectors default="exists">
+          <selector name="exists" logger="sitemap.selector.exists"  
+                    src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+    </selectors>
+  </components>
+  
+  <locator>  
+    <match pattern="resolvePluginContract.*.**">
+      <select type="exists">
+        <location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/themes/{properties:dispatcher.theme}/{1}/{2}.ft" />
+        <location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.ft" />
+      </select>
+    </match>
+    <match pattern="resolvePluginThemes.*.**">
+      <select type="exists">
+        <location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/themes/{properties:dispatcher.theme}/{1}/{2}.{1}" />
+        <location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.{1}" />
+      </select>
+    </match>
+  </locator>
+</locationmap>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/locationmap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 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?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap Sun Jan  7 18:22:22 2007
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="solrUpdate"
+        src="org.apache.forrest.solr.client.SolrUpdateGenerator"/>
+    </map:generators>
+  </map:components>
+<!--  <map:flow language="javascript">
+    <!-#- Flow will use the javascript functions defined in game.js -#->
+    <map:script src="resources/flow/update.js"/>
+  </map:flow>-->
+  <map:pipelines>
+    <map:pipeline>
+      <!-- Update generator will send the command to the solr server and
+        generate the server response -->
+      <map:match pattern="**.do">
+        <map:generate type="solrUpdate">
+          <map:parameter name="destinationUrl" value="{properties:solr.update.url}"/>
+          <map:parameter name="srcUrlBase" value="http://{request:serverName}:{request:serverPort}/{request:contextPath}/"/>
+          <map:parameter name="srcId" value="{1}"/>
+        </map:generate>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!-- Static solr commands -->
+      <map:match pattern="solr.*">
+        <map:generate src="resources/xml/{1}.xml"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!-- Output the whole project as solr docs 
+        as add comand-->
+      <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 type="cinclude"/>
+        <map:serialize type="xml"/>
+      </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:parameter name="document-url" value="{1}.xml"/>
+          <map:parameter name="project" value="{properties:project.name}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!-- Implemented solr commands -->
+      <!-- ADD -->
+      <map:match pattern="**.solr.add">
+        <map:generate src="cocoon://{1}.solr"/>
+        <map:transform src="resources/stylesheets/solrDoc-add.xsl"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!-- DELETE -->
+      <map:match pattern="**.solr.del">
+        <map:generate src="cocoon://{1}.solr"/>
+        <map:transform src="resources/stylesheets/solrDoc-delete.xsl"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      <!--Testing-->
+      <!--<map:match pattern="resolvePluginContract.*.**">
+        <map:generate src="build.xml"/>
+        <map:transform src="resources/stylesheets/test.xsl">
+          <map:parameter name="document-url" value="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.solr/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.{1}**{lm:resolvePluginThemes.{1}.{2}}-#-{lm:themes/{1}.{1}}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>-->
+      <!-- OLD flow approach -->
+          <!-- use JXtemplate to generate page content -->
+<!--      <map:match pattern="*.jx">
+        <map:generate type="jx" src="resources/flow/{1}.jx"/>
+        <map:serialize type="xml"/>
+      </map:match>-->
+      <!--      <map:match pattern="**solr.*.do">
+        <map:call function="update">
+          <map:parameter name="action" value="{2}"/>
+          <map:parameter name="destinationUrl" value="http://localhost:8983/solr/update"/>
+          <map:parameter name="srcUrlBase" value="http://localhost:8888/"/>
+          <map:parameter name="srcId" value="{1}"/>
+        </map:call>
+      </map:match>-->
+    </map:pipeline>
+  </map:pipelines>
+  
+</map:sitemap>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx Sun Jan  7 18:22:22 2007
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<result xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+  <response>
+    <action>${action}</action>
+    <charSet>${charSet}</charSet>
+    <status>${status}</status>
+    <body>${body}</body>
+  </response>
+</result>
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/result.jx
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js Sun Jan  7 18:22:22 2007
@@ -0,0 +1,18 @@
+function update() {
+importClass(Packages.org.apache.forrest.http.client.PostFile);
+var destinationUrl=cocoon.parameters["destinationUrl"];
+var srcUrlBase=cocoon.parameters["srcUrlBase"];
+var srcId=cocoon.parameters["srcId"];
+var srcUrl;
+var action = cocoon.parameters["action"];
+//print("action "+action);
+if(action=='commit' || action=='optimize'){
+ srcUrl=srcUrlBase+"solr."+action;
+ //print("srcUrl "+srcUrl);
+}else{
+ srcUrl=srcUrlBase+srcId+"solr."+action;
+ //print("srcUrl "+srcUrl);
+}
+var post = new PostFile(destinationUrl, srcUrl);
+cocoon.sendPage("result.jx", {"action":action,"status" : post.statusCode(), "charSet" : post.getResponseCharSet(), "body" : post.getResponseBodyAsString()} );
+}

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/flow/update.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--
+Generates a lucene:index for the whole site with CInclude elements where lucene:documents should be pulled in.
+Input is expected to be in standard book.xml format. @hrefs should be normalized, although unnormalized hrefs can be
+handled by uncommenting the relevant section.
+-->
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:cinclude="http://apache.org/cocoon/include/1.0"
+  xmlns:lucene="http://apache.org/cocoon/lucene/1.0">
+
+  <!-- The extension of the lucene index fragments. -->
+  <xsl:param name="extension" select="'solr'"/>
+
+
+  <!-- Creates the lucene:index root element from the Forrest
+  book. -->
+  <xsl:template match="book">
+    <add>
+      <xsl:apply-templates select="menu|menu-item"/>
+    </add>
+  </xsl:template>
+
+  <!-- Recursively processes menu elements. -->
+  <xsl:template match="menu">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <xsl:template match="menu-item[@type='hidden']"/>  <!-- Ignore hidden items -->
+  <xsl:template match="menu-item[contains(@href, '#')]"/>  <!-- Ignore #frag-id items -->
+  <xsl:template match="menu-item[starts-with(@href, 'http:')]"/>  <!-- Ignore absolute http urls -->
+  <xsl:template match="menu-item[starts-with(@href, 'https:')]"/>  <!-- Ignore absolute https urls -->
+  <xsl:template match="menu-item[starts-with(@href, 'ext:')]"/>  <!-- Ignore ext: urls -->
+  <xsl:template match="menu-item[starts-with(@href, 'site:')]"/>  <!-- Ignore site: urls -->
+
+  <!-- For entries whose @href ends in "/", refer to @href/index.lucene -->
+  <xsl:template match="menu-item[substring(@href, string-length(@href) - string-length('/') + 1) = '/']">
+    <cinclude:include>
+      <xsl:attribute name="src">
+        <xsl:text>cocoon://</xsl:text>
+        <xsl:value-of select="concat(@href, 'index.', $extension)"/>
+      </xsl:attribute>
+    </cinclude:include>
+  </xsl:template>
+
+  <!-- Inserts a cinclude:include element for document referenced by
+  menu item. -->
+  <xsl:template match="menu-item">
+    <cinclude:include>
+      <xsl:attribute name="src">
+        <xsl:text>cocoon://</xsl:text>
+        <xsl:call-template name="strip-extension">
+          <xsl:with-param name="the-string" select="@href"/>
+        </xsl:call-template>
+        <xsl:value-of select="$extension"/>
+      </xsl:attribute>
+    </cinclude:include>
+  </xsl:template>
+
+  <!-- Strips the extension from a filename. Works for filenames with
+  multiple dots. -->
+  <xsl:template name="strip-extension">
+    <xsl:param name="the-string"/>
+    <xsl:value-of select="substring-before($the-string, '.')"/>
+    <xsl:if test="substring-after($the-string, '.') != ''">
+      <xsl:text>.</xsl:text>
+      <xsl:call-template name="strip-extension">
+        <xsl:with-param name="the-string" select="substring-after($the-string, '.')"/>
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/book-to-cinclude-solr.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="/">
+    <xsl:copy-of select="."/>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/copy.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--
+Generates a lucene:index for the whole site with CInclude elements where lucene:documents should be pulled in.
+Input is expected to be in standard book.xml format. @hrefs should be normalized, although unnormalized hrefs can be
+handled by uncommenting the relevant section.
+-->
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:cinclude="http://apache.org/cocoon/include/1.0"
+  xmlns:h="http://apache.org/cocoon/request/2.0">
+
+  <!-- The extension of the lucene index fragments. -->
+  <xsl:param name="host"/>
+
+
+  <!-- Creates the lucene:index root element from the Forrest
+  book. -->
+  <xsl:template match="h:request ">
+    <xsl:variable name="query">
+      <xsl:apply-templates select="h:requestParameters"/>
+    </xsl:variable>
+    <cinclude:include>
+      <xsl:attribute name="src">
+        <xsl:value-of select="$host"/>?<xsl:value-of select="normalize-space($query)"/>
+      </xsl:attribute>
+    </cinclude:include>
+  </xsl:template>
+
+  <!-- Recursively processes h:parameter elements. -->
+  <xsl:template match="h:requestParameters">
+    <xsl:for-each select="h:parameter">
+      <xsl:value-of select="@name"/>=<xsl:value-of select="normalize-space(h:value/text())"/>
+      <xsl:if test="position()!=last()">&amp;</xsl:if>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/query-to-cinclude-solr.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="/">
+    <add>
+      <xsl:apply-templates/>
+    </add>
+  </xsl:template>
+  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+    <xsl:copy>
+      <xsl:apply-templates
+        select="@*|*|text()|processing-instruction()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
+  
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-add.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="/">
+    <delete>
+      <id>
+        <xsl:apply-templates select="doc/field[@name='id']"/>
+      </id>
+    </delete>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrDoc-delete.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,104 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:include href="unescape.xsl"/>
+  <xsl:param name="searchForm"/>
+  <xsl:variable name="rows" select="//lst[@name='params']/str[@name='rows']/text()"/>
+  <xsl:variable name="query" select="//lst[@name='params']/str[@name='q']/text()"/>
+  <xsl:variable name="time" select="//lst[@name='responseHeader']/int[@name='QTime']/text()"/>
+  <xsl:template match="/">
+    <document>
+      <header>
+        <title><xsl:value-of select="$query"/> - solr search </title>
+      </header>
+      <body>
+        <xsl:apply-templates select="//result"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="result[@name='response']">
+    <xsl:variable name="start" select="@start"/>
+    <xsl:variable name="found" select="@numFound"/>
+    <xsl:apply-templates select="paginator"/>
+    <section id="result">
+      <title>solr search result </title>
+      <p> Results
+        <xsl:if test="not($found=0)">
+          <xsl:value-of select="$start+1"/>
+          <xsl:choose>
+            <xsl:when test="($start+$rows)&gt;$found and ($start+1 &lt; $found)">
+              -
+              <xsl:value-of select="$found"/> </xsl:when>
+            <xsl:when test="($start+$rows)&gt;$found and ($start+1 = $found)"/>
+            <xsl:otherwise> -
+              <xsl:value-of select="$start+$rows"/> </xsl:otherwise>
+          </xsl:choose>
+          of </xsl:if>
+        <xsl:value-of select="$found"/> for
+        <code>
+          <xsl:value-of select="$query"/>
+        </code>. (
+        <code>
+          <xsl:value-of select="$time"/>
+        </code> ms) </p>
+      <xsl:for-each select="doc">
+        <xsl:variable name="id" select="str[@name='id']"/>
+        <section id="result-{$id}">
+          <title>
+            <xsl:value-of select="str[@name='title']"/>
+          </title>
+          <p><a href="{concat(substring-before($id,'.xml'),'.html')}"><xsl:value-of select="str[@name='title']"/></a> </p>
+          <xsl:apply-templates
+            select="//lst[@name='highlighting']/lst[@name=$id]"/>
+        </section>
+      </xsl:for-each>
+    </section>
+  </xsl:template>
+  <xsl:template match="paginator">
+    <section>
+      <title>Result pages</title>
+      <p>
+        <xsl:for-each select="page">
+          <xsl:variable name="current" select="@current"/>
+          <xsl:choose>
+            <xsl:when test="$current='true'">
+              <xsl:text> </xsl:text><xsl:value-of select="@id"/><xsl:text> </xsl:text>
+            </xsl:when>
+            <xsl:otherwise>
+              <a href="{concat($searchForm,'?',@queryString)}">
+                <xsl:value-of select="@id"/>
+              </a>
+            </xsl:otherwise>
+          </xsl:choose>
+        </xsl:for-each>
+      </p>
+    </section>
+  </xsl:template>
+  <xsl:template match="arr[@name='content']">
+    <xsl:for-each select="str">
+      <p>
+        <xsl:call-template name="unescapeEm">
+          <xsl:with-param name="val" select="."/>
+        </xsl:call-template>
+      </p>
+    </xsl:for-each>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrQueryResult-to-xdocs.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:param name="command"/>
+  <xsl:template match="/">
+    <document>
+      <header>
+        <xsl:choose>
+          <xsl:when test="not(result/@status='0')">
+            <title>error in solr operation </title>
+          </xsl:when>
+          <xsl:otherwise>
+            <title>success in solr operation </title>
+          </xsl:otherwise>
+        </xsl:choose>
+      </header>
+      <body>
+        <xsl:apply-templates select="result"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="result">
+    <section id="result">
+      <title>solr server response</title>
+      <p>Command: <xsl:value-of select="$command"/></p>
+      <xsl:choose>
+        <xsl:when test="not(@status='0')">
+          <warning>There was a problem:
+            <xsl:value-of select="."/></warning>
+        </xsl:when>
+        <xsl:otherwise>
+          <p>Success.</p>
+        </xsl:otherwise>
+      </xsl:choose>
+    </section>
+  </xsl:template>
+  
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:param name="document-url"/>
+  <xsl:template match="/">
+    <delete>
+      <id>
+        <xsl:value-of select="$document-url"/>
+      </id>
+    </delete>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/test.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template name="unescapeEm">
+    <xsl:param name="val" select="''"/>
+    <xsl:variable name="preEm" select="substring-before($val, '&lt;')"/>
+    <xsl:choose>
+      <xsl:when test="$preEm or starts-with($val, '&lt;')">
+        <xsl:variable name="insideEm" select="substring-before($val,
+'&lt;/')"/>
+        <xsl:value-of select="$preEm"/>
+        <em>
+          <xsl:value-of select="substring($insideEm, string-length($preEm)+5)"/>
+        </em>
+        <xsl:variable name="leftover"
+          select="substring($val,
+string-length($insideEm) + 6)"/>
+        <xsl:if test="$leftover">
+          <xsl:call-template name="unescapeEm">
+            <xsl:with-param name="val" select="$leftover"/>
+          </xsl:call-template>
+        </xsl:if>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="$val"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/unescape.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl Sun Jan  7 18:22:22 2007
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <!-- The URL of the document which the indexing information stems
+  from -->
+  <xsl:param name="document-url"/>
+  <xsl:param name="project"/>
+  <xsl:template match="/">
+    <xsl:apply-templates/>
+  </xsl:template>
+  <xsl:template match="document">
+    <doc>
+      <field name="id">
+        <xsl:value-of select="$project"/>:<xsl:value-of select="$document-url"/>
+      </field>
+      <xsl:apply-templates select="header/*"/>
+      <field name="content">
+        <xsl:apply-templates select="body"/>
+      </field>
+    </doc>
+  </xsl:template>
+  <!-- Copies document header, title, and version-->
+  <xsl:template
+    match="header/title |
+                       header/subtitle |
+                       header/abstract |
+                       header/version">
+    <field name="{name(.)}">
+      <xsl:apply-templates/>
+    </field>
+  </xsl:template>
+  <xsl:template match="header/authors/person">
+    <field name="author">
+      <xsl:value-of select="@name"/>
+    </field>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/xdocs-to-solrDoc.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css Sun Jan  7 18:22:22 2007
@@ -0,0 +1,77 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+#solr {
+ background: #294563;
+ color:#CFDCED;
+ min-height:25px;
+ border-bottom: thick solid #002b3d;
+ padding:5px;
+}
+.solrSearch{
+ display:inline;
+ float:right;
+}
+.solrSearch form div{
+ display:inline;
+}
+.solrSearch form{
+ display:inline;
+}
+
+.solrSearch input {
+margin-top:2pt;
+ background: #4A6D8C;
+ border: thin inset #002b3d;
+ color:#fff;
+}
+ .solrSearch .submit input:hover{
+text-decoration: underline;
+ }
+.solrActionbar{
+ text-align:left;
+ font-family: verdana, helvetica, sans;
+ font-size: 8pt;
+ padding:5px;
+}
+#solr ul{
+ display:inline;
+ list-style:none;
+}
+#solr a {
+ color: #fff;
+ text-decoration: none;
+ font-weight: bold;
+ padding:2pt;
+ marrgin:2pt;
+ background: #4A6D8C;
+ border: thin solid #002b3d;
+}
+
+#solr a:visited {
+ font-weight: normal;
+}
+#solr a:hover {
+ text-decoration: underline;
+}
+#solr li:hover{
+ list-style:underline;
+}
+#solr li{
+ padding:2pt;
+ marrgin:2pt;
+ display:inline;
+}
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/css/solr.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft Sun Jan  7 18:22:22 2007
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<forrest:contract 
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  name="solr-actionbar">
+  
+  <description>
+    <p> This is the solr-actionbar contract, it will output links to manage forrest docs with
+      a Apache solr server. </p>
+    <p>In your solr server add the following field definitions to the schema.xml. We assume
+        "id" is already set as "uniqueKey" and you changed the "defaultSearchField" to
+        "content" otherwise you need to prefix your queries.</p>
+    <source>
+      <![CDATA[<field name="content" type="text" indexed="true" stored="true" />
+<field name="title" type="text" indexed="true" stored="true"/>
+<field name="subtitle" type="text" indexed="true" stored="true"/>
+<field name="abstract" type="text" indexed="true" stored="true"/>
+<field name="version" type="text" indexed="true" stored="true"/>
+<field name="author" type="text" indexed="true" stored="true" multiValued="true"/>]]>
+    </source>
+  </description>
+  <usage><![CDATA[<forrest:contract name="solr-actionbar">
+  <forrest:property name="request">#{$getRequest}</forrest:property>
+  <forrest:property name="contextPath">#{$contextPath}</forrest:property>
+</forrest:contract>]]></usage>
+  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    name="solr-actionbar" inputFormat="xsl">
+    <xsl:stylesheet version="1.1" 
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+      <xsl:param name="request" />
+      <xsl:param name="contextPath" />
+      <xsl:template match="/">
+        <xsl:variable name="context">
+          <xsl:choose>
+            <xsl:when test="$contextPath!=''">
+              /<xsl:value-of select="$contextPath"/>/
+            </xsl:when>
+            <xsl:otherwise>
+              /
+            </xsl:otherwise>
+          </xsl:choose>
+        </xsl:variable>
+        <forrest:content>
+          <forrest:part>Apache Solr Server commands: 
+            <ul>
+              <li>
+                <xsl:choose>
+                  <xsl:when test="contains($request,'solr.add.do')">
+                    add document (not committed)
+                  </xsl:when>
+                  <xsl:when test="contains($request,'solr-search') or contains($request,'solr.commit') or contains($request,'solr.delete.do') or contains($request,'solr.optimize')"/>
+                  <xsl:otherwise>
+                    <a href="{normalize-space($context)}{$request}.solr.add.do.html"> add document </a>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </li>
+              <li>
+                <xsl:choose>
+                  <xsl:when test="contains($request,'solr.delete.do')">
+                    delete document (not committed)
+                  </xsl:when>
+                  <xsl:when test="contains($request,'solr-search') or contains($request,'solr.commit') or contains($request,'solr.add.do') or contains($request,'solr.optimize')"/>
+                  <xsl:otherwise>
+                    <a href="{normalize-space($context)}{$request}.solr.delete.do.html"> delete document</a>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </li>
+              <li>
+                <a href="{normalize-space($context)}solr.commit.do.html"> commit </a>
+              </li>
+              <li>
+                <a href="{normalize-space($context)}solr.optimize.do.html"> optimize </a>
+              </li>
+            </ul> </forrest:part>
+        </forrest:content>
+      </xsl:template>
+    </xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-actionbar.ft
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft Sun Jan  7 18:22:22 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<forrest:contract 
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  name="solr-search">
+  
+  <description>
+    <p> This is the solr-search contract, it will output a search form to search an Apache solr server. </p>
+    <p>In your solr server change the following field definition in the schema.xmlotherwise
+      you need to prefix your queries. . </p>
+    <source>
+      <![CDATA[<defaultSearchField>content</defaultSearchField>]]>
+    </source>
+  </description>
+  <usage><![CDATA[<forrest:contract name="solr-search">
+ <forrest:property name="hidden">
+  <input name="hl" type="hidden" value="true"/>
+  <input name="hl.fl" type="hidden" value="content"/>
+  <input name="fl" type="hidden" value="id,title"/>
+  <input name="indent" type="hidden" value="on"/>
+  <input name="rows" type="hidden" value="10"/>
+  <input name="start" type="hidden" value="0"/>
+ </forrest:property>
+ <forrest:property name="contextPath">#{$contextPath}</forrest:property>
+</forrest:contract>]]></usage>
+  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    name="solr-search" inputFormat="xsl">
+    <xsl:stylesheet version="1.1" 
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+      <xsl:param name="hidden" />
+      <xsl:param name="contextPath" />
+      <xsl:template match="/">
+        <xsl:variable name="action">
+          <xsl:choose>
+            <xsl:when test="$contextPath!=''">
+              /<xsl:value-of select="$contextPath"/>/solr-search.html
+            </xsl:when>
+            <xsl:otherwise>
+              /solr-search.html
+            </xsl:otherwise>
+          </xsl:choose>
+        </xsl:variable>
+        <forrest:content>
+          <forrest:part>
+            <form action="{normalize-space($action)}" method="get" name="solr-search">
+              <div class="searchHidden">
+                <input name="version" type="hidden" value="2.2"/>
+                <xsl:copy-of select="$hidden/*"/>
+              </div>
+              <div class="searchField">
+                <input name="q"
+                  onblur="getPrompt(this, 'Search the site with solr');"
+                  onfocus="getBlank(this, 'Search the site with solr');"
+                  size="25" type="text" value="Search the site with solr"/>
+              </div>
+              <div class="searchSubmit">
+                <input name="Search" type="submit" value="Search"/>
+              </div>
+            </form> </forrest:part>
+        </forrest:content>
+      </xsl:template>
+    </xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml Sun Jan  7 18:22:22 2007
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<commit/>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/commit.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml Sun Jan  7 18:22:22 2007
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<optimize/>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/xml/optimize.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties Sun Jan  7 18:22:22 2007
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#=======================================================================
+# CatalogManager.properties for Catalog Entity Resolver.
+#
+# This is a minimal properties file to prevent a confusing warning.
+catalogs=

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/classes/CatalogManager.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/favicon.ico
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/favicon.ico?view=auto&rev=493909
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/favicon.ico
------------------------------------------------------------------------------
    svn:mime-type = image/x-icon

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group-logo.gif
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group-logo.gif?view=auto&rev=493909
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg Sun Jan  7 18:22:22 2007
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+       SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:group-name">
+ <!ELEMENT for:group-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+     xsl:version="1.0"
+     xmlns:for="http://apache.org/forrest"
+     width="220" height="65" >
+  <title>Anteater logo</title>
+
+  <defs>
+
+    <!--
+    <radialGradient id="radialGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </radialGradient>
+    <linearGradient id="linearGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </linearGradient>
+    -->
+
+    <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop style="stop-color:white" offset="0"/>
+      <stop style="stop-color:lightgreen" offset="1"/>
+    </linearGradient>
+
+    <filter id="shadowFilter" filterUnits="objectBoundingBox" width="1.4" height="1.4">
+      <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+      <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+      <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+      <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+      former 'over' the latter, and using the merged result as the finished
+      image -->
+      <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+    </filter>
+
+  </defs>
+
+  <g filter="url(#shadowFilter)" fill="url(#gradient)">
+    <text x="40%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: middle">
+    <for:group-name />
+    </text>
+  </g>
+</svg>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/group.svg
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/icon.png
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/icon.png?view=auto&rev=493909
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/icon.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project-logo.gif
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project-logo.gif?view=auto&rev=493909
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg?view=auto&rev=493909
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg Sun Jan  7 18:22:22 2007
@@ -0,0 +1,82 @@
+<?xml version="1.0" standalone="no"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+       SVG Anteater logo
+
+To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
+xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
+SVG spec (http://www.w3.org/TR/SVG/) as a reference.
+-->
+
+<!-- See Forrest Issue: FOR-229
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
+[
+ <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
+ <!ENTITY % textExt "|for:project-name">
+ <!ELEMENT for:project-name (#PCDATA)>
+]>
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+     xsl:version="1.0"
+     xmlns:for="http://apache.org/forrest"
+     width="420" height="65" >
+  <title>Anteater logo</title>
+
+  <defs>
+
+    <!--
+    <radialGradient id="radialGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </radialGradient>
+    <linearGradient id="linearGradient">
+      <stop style="stop-color:gold" offset="0"/>
+      <stop style="stop-color:orange" offset=".5"/>
+      <stop style="stop-color:crimson" offset="1"/>
+    </linearGradient>
+    -->
+
+    <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop style="stop-color:white" offset="0"/>
+      <stop style="stop-color:lightgreen" offset="1"/>
+    </linearGradient>
+
+    <filter id="shadowFilter" filterUnits="objectBoundingBox" width="1.4" height="1.4">
+      <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
+      <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
+      <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
+      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
+      <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
+      former 'over' the latter, and using the merged result as the finished
+      image -->
+      <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
+    </filter>
+
+  </defs>
+
+  <g filter="url(#shadowFilter)" fill="url(#gradient)">
+    <text x="100%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: end" >
+    <for:project-name />
+    </text>
+  </g>
+</svg>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/project.svg
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/usemap.gif
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/usemap.gif?view=auto&rev=493909
==============================================================================
Binary file - no diff available.

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/documentation/content/xdocs/images/usemap.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message