You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/02/07 03:29:56 UTC

svn commit: r375447 - in /lenya/trunk/src/modules/linkcheck: sitemap.xmap usecases/linkcheck/getLinks.jx usecases/linkcheck/usecase.xmap

Author: chestnut
Date: Mon Feb  6 18:29:54 2006
New Revision: 375447

URL: http://svn.apache.org/viewcvs?rev=375447&view=rev
Log:
updated module urls

Added:
    lenya/trunk/src/modules/linkcheck/sitemap.xmap   (with props)
Removed:
    lenya/trunk/src/modules/linkcheck/usecases/linkcheck/usecase.xmap
Modified:
    lenya/trunk/src/modules/linkcheck/usecases/linkcheck/getLinks.jx

Added: lenya/trunk/src/modules/linkcheck/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/linkcheck/sitemap.xmap?rev=375447&view=auto
==============================================================================
--- lenya/trunk/src/modules/linkcheck/sitemap.xmap (added)
+++ lenya/trunk/src/modules/linkcheck/sitemap.xmap Mon Feb  6 18:29:54 2006
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2005 The Apache Software Foundation
+
+  Licensed 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 sitemap handles the creation of link reports
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="linkStatus" src="org.apache.lenya.cms.cocoon.generation.LinkStatusGenerator">
+      </map:generator>
+    </map:generators>
+    
+    <map:selectors default="browser">
+      <map:selector logger="sitemap.selector.lastmod" name="last-mod" src="org.apache.lenya.cms.cocoon.selection.LastModSourceSelector"/>
+    </map:selectors>
+  </map:components>
+  
+	<!-- =========================== Pipelines ================================ -->
+	
+  <map:pipelines>
+	  
+    <map:pipeline type="noncaching">
+      <map:match pattern="getLinks.xml">
+         <map:select type="last-mod">
+            <map:parameter name="compare-to" value="lenya://lenya/pubs/{page-envelope:publication-id}/content/{page-envelope:area}/{page-envelope:document-path}"/>
+            <!-- Read from cache -->
+            <!-- If configured within Apache then mod_lenya will nevertheless read from cache -->
+            <map:when test="context://lenya/pubs/{page-envelope:publication-id}/work/cache/{page-envelope:area}/{page-envelope:document-id}.linkreport">
+                <map:generate src="context://lenya/pubs/{page-envelope:publication-id}/work/cache/{page-envelope:area}/{page-envelope:document-id}.linkreport" mime-type="text/xml; charset=utf-8"/>
+                <map:serialize type="xml"/>
+            </map:when>
+            <!-- Write to cache and serialize -->
+            <map:otherwise>  
+              <map:generate type="linkStatus" src="/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-id}.html">
+                <map:parameter name="depth" value="1"/>
+              </map:generate>
+              <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
+              <map:transform src="fallback://lenya/xslt/authoring/edit/addSourceTags.xsl">
+                <map:parameter name="source" value="context://lenya/pubs/{page-envelope:publication-id}/work/cache/{page-envelope:area}/{page-envelope:document-id}.linkreport"/>
+              </map:transform>
+              <map:transform type="write-source">
+                <map:parameter name="serializer" value="xml"/>
+              </map:transform>
+              <map:transform src="fallback://lenya/xslt/authoring/edit/removeSourceTags.xsl"/>
+              <map:serialize type="xml"/>
+            </map:otherwise>
+          </map:select>
+      </map:match>
+      
+    </map:pipeline>
+    
+	</map:pipelines>
+	
+</map:sitemap>
\ No newline at end of file

Propchange: lenya/trunk/src/modules/linkcheck/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lenya/trunk/src/modules/linkcheck/usecases/linkcheck/getLinks.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/linkcheck/usecases/linkcheck/getLinks.jx?rev=375447&r1=375446&r2=375447&view=diff
==============================================================================
--- lenya/trunk/src/modules/linkcheck/usecases/linkcheck/getLinks.jx (original)
+++ lenya/trunk/src/modules/linkcheck/usecases/linkcheck/getLinks.jx Mon Feb  6 18:29:54 2006
@@ -16,5 +16,5 @@
 -->
 
 <cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0">
-  <cinclude:src>cocoon://core/modules/linkcheck/linkcheck/getLinks.xml</cinclude:src>
+  <cinclude:src>cocoon://modules/linkcheck/getLinks.xml</cinclude:src>
 </cinclude:includexml>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org