Author: rgardler
Date: Mon Sep 10 03:27:17 2007
New Revision: 574199

URL: http://svn.apache.org/viewvc?rev=574199&view=rev
Log:
Contract to add foaf link to pages

Added:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft
   (with props)
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/images/
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/images/foafTiny.png
   (with props)

Added: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft?rev=574199&view=auto
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft
 (added)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft
 Mon Sep 10 03:27:17 2007
@@ -0,0 +1,44 @@
+<?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 name="content-foaf-link"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0";>
+  <description>
+    content-foaf-link will output the foaf link with image to the content.
+  </description>
+  <usage>
+<![CDATA[<forrest:contract name="content-foaf-link"/>]]>
+  </usage>
+  <forrest:template
+    xmlns:forrest="http://apache.org/forrest/templates/1.0";
+    name="content-foaf-link" inputFormat="xsl" >
+    <xsl:stylesheet version="1.1" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+      <xsl:param name="defaultVariables" select="'test.html'"/>
+      <xsl:variable name="skin-img-dir" select="$defaultVariables/*/[EMAIL 
PROTECTED]'skin-img-dir']/@value"/>
+      <xsl:variable name="filename-noext" select="$defaultVariables/*/[EMAIL 
PROTECTED]'filename-noext']/@value"/>
+      <xsl:template match="/">
+        <forrest:content>
+          <forrest:part><a href="{$filename-noext}.rdf" class="format">
+            <img class="skin" src="{$skin-img-dir}/foafTiny.png" 
+                alt="foaf - icon"/>
+            <span class="caption">foaf</span></a>
+          </forrest:part>
+        </forrest:content>
+      </xsl:template>
+    </xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>

Propchange: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/html/content-foaf-link.ft
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/images/foafTiny.png
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/images/foafTiny.png?rev=574199&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/themes/common/images/foafTiny.png
------------------------------------------------------------------------------
    svn:mime-type = image/png