Author: gmcdonald
Date: Sun May 18 04:36:20 2008
New Revision: 657541

URL: http://svn.apache.org/viewvc?rev=657541&view=rev
Log:
Refactor to new dispatcher FOR-797

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-pod-link.ft

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-pod-link.ft
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-pod-link.ft?rev=657541&r1=657540&r2=657541&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-pod-link.ft
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-pod-link.ft
 Sun May 18 04:36:20 2008
@@ -15,7 +15,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<forrest:contract name="content-pod-link" type="nugget"
+<forrest:contract name="content-pod-link"
   xmlns:forrest="http://apache.org/forrest/templates/1.0";>
   <description>
     content-pod-link will output the POD link with image to the content.
@@ -24,12 +24,20 @@
 <![CDATA[<forrest:contract name="content-pod-link"/>]]>
   </usage>
   <forrest:template
-       xmlns:forrest="http://apache.org/forrest/templates/1.0";
-       format="html" name="content-pod-link" inputFormat="xsl" body="true" 
head="false">
+  xmlns:forrest="http://apache.org/forrest/templates/1.0";
+  name="content-pod-link" inputFormat="xsl">
     <xsl:stylesheet version="1.1" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
-      <xsl:template name="content-pod-link-body"><a 
href="{$filename-noext}.pod" class="format">
-        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" />
-        <span class="caption">POD</span></a>
+      <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}.pod" class="format">
+          <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" 
/>
+          <span class="caption">POD</span></a>
+          </forrest:part>
+        </forrest:content>
       </xsl:template>
     </xsl:stylesheet>
   </forrest:template>