forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r699268 - /forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml
Date Fri, 26 Sep 2008 11:01:14 GMT
Author: thorsten
Date: Fri Sep 26 04:01:12 2008
New Revision: 699268

URL: http://svn.apache.org/viewvc?rev=699268&view=rev
Log:
Adding a sample fo contract to test as well fo

Added:
    forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml
      - copied, changed from r696582, forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/m2.contract.xml

Copied: forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml
(from r696582, forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/m2.contract.xml)
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml?p2=forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml&p1=forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/m2.contract.xml&r1=696582&r2=699268&rev=699268&view=diff
==============================================================================
--- forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/m2.contract.xml
(original)
+++ forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/fo.contract.xml
Fri Sep 26 04:01:12 2008
@@ -14,28 +14,24 @@
     limitations under the License.
   -->
 <forrest:contract xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
-  xmlns:forrest="http://apache.org/forrest/templates/2.0" name="m2">
+  xmlns:forrest="http://apache.org/forrest/templates/2.0" name="fo">
   <description>
     <p> This is just a test contract for using in junit.</p>
   </description>
   <usage>
-<![CDATA[<forrest:contract name="m2"/>]]>
+<![CDATA[<forrest:contract name="fo"/>]]>
   </usage>
-  <forrest:template name="m2" inputFormat="xsl">
+  <forrest:template name="fo" inputFormat="xsl">
     <xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:param name="test-inline" select="'No parameter has been passed'" />
       <xsl:param name="test-inline-xml" select="'No xml parameter has been passed'" />
       <xsl:template match="/">
-        <forrest:content xmlns:forrest="http://apache.org/forrest/templates/1.0">
+        <forrest:content xmlns:forrest="http://apache.org/forrest/templates/2.0"
+         xmlns:fo="http://www.w3.org/1999/XSL/Format">
           <forrest:part>
-            Another test! $test-inline:
-            <xsl:value-of select="$test-inline" />
-            $test-inline-xml:
-            <xsl:copy-of select="$test-inline-xml" />
-          </forrest:part>
-          <forrest:part xpath="/html/head">
-            <meta content="m2 - another test" name="Description" />
+           <fo:bookmark>
+            Another test! </fo:bookmark>
           </forrest:part>
         </forrest:content>
       </xsl:template>



Mime
View raw message