You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/09/09 10:59:06 UTC
svn commit: r279737 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft
Author: rgardler
Date: Fri Sep 9 01:59:00 2005
New Revision: 279737
URL: http://svn.apache.org/viewcvs?rev=279737&view=rev
Log:
convert branding-tagline template to XHTML2
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft?rev=279737&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/branding-tagline.ft Fri Sep 9 01:59:00 2005
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+<forrest:contract xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-tagline" type="nugget">
+ <description>
+ branding-tagline will output the site name and tagline.
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-tagline">
+ <forrest:properties contract="branding-tagline">
+ <forrest:property name="branding-tagline-name">new seed</forrest:property>
+ <forrest:property name="branding-tagline-tagline">powered by
+ forrest:views</forrest:property>
+ </forrest:properties>
+</forrest:contract>]]></usage>
+ <forrest:template
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ xmlns:xhtml2="http://www.w3.org/2002/06/xhtml2"
+ format="xhtml" name="branding-tagline" inputFormat="xsl" body="true" head="false" css="false">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="branding-tagline-body">
+ <xsl:param name="branding-tagline-name"/>
+ <xsl:param name="branding-tagline-tagline"/>
+ <xhtml2:div id="branding-tagline-name">
+ <xsl:value-of select="$branding-tagline-name"/>
+ </xhtml2:div>
+ <xhtml2:div id="branding-tagline-tagline">
+ <xsl:value-of select="$branding-tagline-tagline"/>
+ </xhtml2:div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>