forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmcdon...@apache.org
Subject svn commit: r657542 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-source-xml-link.ft
Date Sun, 18 May 2008 11:38:00 GMT
Author: gmcdonald
Date: Sun May 18 04:38:00 2008
New Revision: 657542

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

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

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-source-xml-link.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-source-xml-link.ft?rev=657542&r1=657541&r2=657542&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-source-xml-link.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/content-source-xml-link.ft
Sun May 18 04:38:00 2008
@@ -15,7 +15,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<forrest:contract name="content-source-xml-link" type="nugget"
+<forrest:contract name="content-source-xml-link"
     xmlns:forrest="http://apache.org/forrest/templates/1.0">
   <description>
     content-source-xml-link will output the XML link with image to the original
@@ -29,7 +29,7 @@
   </usage>
   <forrest:template
   xmlns:forrest="http://apache.org/forrest/templates/1.0"
-  format="html" name="content-source-xml-link" inputFormat="xsl" body="true">
+  format="html" name="content-source-xml-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" 
@@ -38,7 +38,8 @@
           select="$defaultVariables/*/*[@name='filename-noext']/@value"/>
       <xsl:template match="/">
         <forrest:content>
-          <forrest:part><a href="{$filename-noext}.source.xml" class="format">
+          <forrest:part xpath="/html/body">
+          <a href="{$filename-noext}.source.xml" class="format">
             <img class="skin" src="{$skin-img-dir}/xmldoc.gif" 
                   alt="Source XML - icon" />
             <span class="caption">Source XML</span></a>



Mime
View raw message