Copied: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-footer.ft
(from r478158, forrest/trunk/main/webapp/skins/common/xslt/fo/footerinfo.xsl)
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-footer.ft?view=diff&rev=482132&p1=forrest/trunk/main/webapp/skins/common/xslt/fo/footerinfo.xsl&r1=478158&p2=forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-footer.ft&r2=482132
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/fo/footerinfo.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-footer.ft
Mon Dec 4 03:04:20 2006
@@ -1,71 +1,91 @@
<?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.
+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.
-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0">
-
-<!--
-Named template to generate a short message in the PDF footer, from text in
-skinconf.xml. By default, the message is a copyright statement. If a credit
-with @role='pdf' is present, that is used instead. Eg:
-
-<credit role="pdf">
- <name>Generated by Apache FOP 1.0-dev</name>
- <url>http://xml.apache.org/fop/dev/</url>
-</credit>
--->
- <xsl:template name="info">
- <xsl:variable name="disable-copyright-footer" select="//skinconfig/pdf/disable-copyright-footer"/>
- <xsl:variable name="pdfcredit" select="//skinconfig/credits/credit[@role = 'pdf']"/>
- <xsl:variable name="text">
- <xsl:if test="$pdfcredit">
- <xsl:value-of select="$pdfcredit/name"/>
- </xsl:if>
- <xsl:if test="not($pdfcredit) and not($disable-copyright-footer = 'true')">
- <xsl:text>Copyright © </xsl:text><xsl:value-of select="//skinconfig/year"/> <xsl:value-of
- select="//skinconfig/vendor"/><xsl:text> All rights reserved.</xsl:text>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="url" select="$pdfcredit/url"/>
-
- <fo:block-container font-style="italic" absolute-position="absolute"
- left="0pt" top="0pt" right="6.25in" bottom="150pt"
- font-size="10pt">
- <xsl:if test="not($url)">
- <fo:block text-align="center" color="lightgrey">
- <xsl:value-of select="$text"/>
- </fo:block>
- </xsl:if>
- <xsl:if test="$url">
- <fo:block text-align="center">
- <fo:basic-link color="lightgrey"
- external-destination="{$url}">
- <xsl:value-of select="$text"/>
- </fo:basic-link>
- </fo:block>
- <fo:block text-align="center">
- <fo:basic-link color="lightgrey"
- external-destination="{$url}">
- <xsl:value-of select="$url"/>
- </fo:basic-link>
- </fo:block>
- </xsl:if>
- </fo:block-container>
- </xsl:template>
-
-</xsl:stylesheet>
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="helper-fo-footer">
+ <description>
+ <p>helper-fo-footer is a helper class to be used
+ <strong>only</strong> internally as import/include from
+ within other contracts!</p>
+ </description>
+ <usage>
+ <![CDATA[internal only!!!
+
+ <xsl:include href="cocoon://prepare.contract.fo.helper-fo-footer"/>]]>
+ </usage>
+ <forrest:template
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="helper-fo-footer" inputFormat="xsl">
+ <xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+ <!--
+ Named template to generate a short message in the PDF footer, from text in
+ skinconf.xml. By default, the message is a copyright statement. If a credit
+ with @role='pdf' is present, that is used instead. Eg:
+
+ <credit role="pdf">
+ <name>Generated by Apache FOP 1.0-dev</name>
+ <url>http://xml.apache.org/fop/dev/</url>
+ </credit>
+ -->
+ <xsl:template name="info">
+ <xsl:variable name="disable-copyright-footer"
+ select="$config/disable-copyright-footer"/>
+ <xsl:variable name="text">
+ <xsl:if
+ test="not($disable-copyright-footer = 'true')">
+ <xsl:text>Copyright © </xsl:text>
+ <xsl:value-of select="$config/year"/> 
+ <xsl:value-of select="$config/vendor"/>
+ <xsl:text> All rights reserved.</xsl:text>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="url" select="$config/url"/>
+
+ <fo:block-container font-style="italic"
+ absolute-position="absolute" left="0pt" top="0pt"
+ right="6.25in" bottom="150pt" font-size="10pt">
+ <xsl:if test="not($url)">
+ <fo:block text-align="center" color="lightgrey">
+ <xsl:value-of select="$text"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="$url">
+ <fo:block text-align="center">
+ <fo:basic-link color="lightgrey"
+ external-destination="{$url}">
+ <xsl:value-of select="$text"/>
+ </fo:basic-link>
+ </fo:block>
+ <fo:block text-align="center">
+ <fo:basic-link color="lightgrey"
+ external-destination="{$url}">
+ <xsl:value-of select="$url"/>
+ </fo:basic-link>
+ </fo:block>
+ </xsl:if>
+ </fo:block-container>
+ </xsl:template>
+
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Copied: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-outline.ft
(from r478158, forrest/trunk/main/webapp/skins/common/xslt/fo/pdfoutline.xsl)
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-outline.ft?view=diff&rev=482132&p1=forrest/trunk/main/webapp/skins/common/xslt/fo/pdfoutline.xsl&r1=478158&p2=forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-outline.ft&r2=482132
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/fo/pdfoutline.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/helper-fo-outline.ft
Mon Dec 4 03:04:20 2006
@@ -15,6 +15,19 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+<forrest:contract xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="helper-fo-outline">
+ <description>
+ <p>helper-fo-outline is a helper class to be used <strong>only</strong>
+ internally as import/include from within other contracts!</p>
+ </description>
+ <usage><![CDATA[internal only!!!
+
+ <xsl:include href="cocoon://prepare.contract.fo.helper-fo-outline"/>]]>
+ </usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="helper-fo-outline" inputFormat="xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xml.apache.org/fop/extensions"
@@ -47,3 +60,5 @@
</xsl:template>
</xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
|