Author: rgardler
Date: Wed Mar 14 03:59:35 2007
New Revision: 518095
URL: http://svn.apache.org/viewvc?view=rev&rev=518095
Log:
Dispatcher template for a human link to the raw DOAP
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
(with props)
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft?view=auto&rev=518095
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
Wed Mar 14 03:59:35 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-doap-link"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0">
+ <description>
+ content-doap-link will output the doap link with image to the content.
+ </description>
+ <usage><![CDATA[<forrest:contract name="content-doap-link"/>]]></usage>
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="content-doap-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}/doapdoc.gif"
+ alt="doap - icon"/>
+ <span class="caption">doap</span>
+ </a>
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
------------------------------------------------------------------------------
svn:eol-style = native