forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r106627 - /forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Date Fri, 26 Nov 2004 00:59:46 GMT
Author: thorsten
Date: Thu Nov 25 16:59:45 2004
New Revision: 106627

URL: http://svn.apache.org/viewcvs?view=rev&rev=106627
Log:
added xsl of filter
Added:
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
  (contents, props changed)

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl?view=auto&rev=106627
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Thu Nov 25 16:59:45 2004
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 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.
+-->
+<!--
+site2xml.xsl is the final stage in XML page production.  It merges HTML from
+document2html.xsl, tab2menu.xsl and book2menu.xsl, and adds the site header,
+footer, searchbar, css etc.  As input, it takes XML of the form:
+
+<elements>
+  <branding/>
+  <search/>
+  <menu/>
+  <content/>
+  <siteinfo/>
+</elements>
+
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:forrest="http://apache.org/forrest/templates/1.0">
+  <xsl:param name="contextPath"/>
+  
+  <!--+
+  |Overall site template
+  +-->
+  <xsl:template match="/">
+    <filter>
+      <xsl:apply-templates />
+    </filter>
+  </xsl:template>
+  <xsl:template match="filter/forrest:hook">
+    <div id="{@name}">
+      <xsl:apply-templates />
+    </div>
+  </xsl:template>
+    <xsl:template match="filter/forrest:contract">
+    <xsl:variable name="css-ft" value="@name"/>
+    <div id="{@name}"><xsl:value-of select="$css-ft"/>
+      <xsl:apply-templates />
+    </div>
+  </xsl:template>
+</xsl:stylesheet>

Mime
View raw message