You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/06/05 18:07:45 UTC

svn commit: r180106 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft

Author: thorsten
Date: Sun Jun  5 09:07:45 2005
New Revision: 180106

URL: http://svn.apache.org/viewcvs?rev=180106&view=rev
Log:
fixed the pdf-link contract. bug reported by Diwaker Gupta. This was a real old contract which followed the old naming convention and coding style. ;-) thx Diwaker Gupta. :)

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft?rev=180106&r1=180105&r2=180106&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pdf-link.ft Sun Jun  5 09:07:45 2005
@@ -15,7 +15,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<forrest:contract name="pdf-fct" type="nugget"
+<forrest:contract name="pdf-link" type="nugget"
   xmlns:forrest="http://apache.org/forrest/templates/1.0">
   <description>
     This functions will output the PDF link with image.
@@ -23,15 +23,13 @@
 
 	<forrest:template
   	xmlns:forrest="http://apache.org/forrest/templates/1.0"
-  	format="xhtml" name="pdf-link" inputFormat="xsl" body="true" head="false">
+  	format="xhtml" name="pdf-link" inputFormat="xsl" body="true" head="false" css="false">
   	<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-		  <xsl:template name="pdf-body">
-		    <body>
+		  <xsl:template name="pdf-link-body">
 		      <div id="pdf" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">
 		        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF - icon"/><br/>
 		        PDF</a>
 		      </div>
-		    </body>
 		  </xsl:template>
 		
 		</xsl:stylesheet>