Author: gmcdonald
Date: Sun May 18 04:30:55 2008
New Revision: 657539

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

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

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