You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2006/03/14 09:36:27 UTC
svn commit: r385757 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya:
input.xmap resources/stylesheets/sitetree-to-site.xsl
Author: thorsten
Date: Tue Mar 14 00:36:25 2006
New Revision: 385757
URL: http://svn.apache.org/viewcvs?rev=385757&view=rev
Log:
Enabeling lenya sitetree to site for the doco pub which requests the files via filesystem rather then http.
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl (with props)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/input.xmap
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/input.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/input.xmap?rev=385757&r1=385756&r2=385757&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/input.xmap Tue Mar 14 00:36:25 2006
@@ -28,6 +28,11 @@
<map:transform src="{project:resources.stylesheets}/lenyasitetree2linkmap.xsl" />
<map:serialize type="xml"/>
</map:match>
+ <map:match pattern="doco-site.xml">
+ <map:generate src="{project:content.xdocs}sitetree.xml"/>
+ <map:transform src="resources/stylesheets/sitetree-to-site.xsl" />
+ <map:serialize type="xml"/>
+ </map:match>
<map:match pattern="lenya/**.xml">
<map:generate src="{lm:{0}}"/>
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl?rev=385757&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl Tue Mar 14 00:36:25 2006
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ 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.
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:site="http://apache.org/cocoon/lenya/sitetree/1.0">
+ <xsl:template match="/">
+ <!--href="" xmlns="http://apache.org/forrest/linkmap/1.0"-->
+ <site label="docu">
+ <about label="About">
+ <index label="Index" href="index.html" description="Welcome to Doco"/>
+ </about>
+ <xsl:apply-templates/>
+ </site>
+ </xsl:template>
+ <xsl:template match="site:node">
+ <xsl:element name="{@id}">
+ <xsl:attribute name="href"> <xsl:value-of select="@id"/>/</xsl:attribute>
+ <xsl:attribute name="label">
+ <xsl:value-of select="site:label"/>
+ </xsl:attribute>
+ <xsl:element name="{@id}">
+ <xsl:attribute name="href">index_en.html</xsl:attribute>
+ <xsl:attribute name="label">
+ <xsl:value-of select="site:label"/>
+ </xsl:attribute>
+ </xsl:element>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+ <xsl:template match="site:label"/>
+</xsl:stylesheet>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Lenya/resources/stylesheets/sitetree-to-site.xsl
------------------------------------------------------------------------------
svn:eol-style = native