cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r122550 - in cocoon/trunk/src/blocks/portal/samples: . coplets/html profiles/copletdata profiles/copletinstancedata profiles/layout
Date Thu, 16 Dec 2004 13:58:27 GMT
Author: cziegeler
Date: Thu Dec 16 05:58:24 2004
New Revision: 122550

URL: http://svn.apache.org/viewcvs?view=rev&rev=122550
Log:
Example for the application coplet
Added:
   cocoon/trunk/src/blocks/portal/samples/coplets/html/envelope.xml
Modified:
   cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl
   cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap
   cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml
   cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml
   cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml
   cocoon/trunk/src/blocks/portal/samples/sitemap.xmap

Modified: cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl	(original)
+++ cocoon/trunk/src/blocks/portal/samples/coplets/html/cleanhtml.xsl	Thu Dec 16 05:58:24
2004
@@ -20,10 +20,11 @@
 <!-- 
 This stylesheet simply removes the surrounding html and body tag
 
-$Id: cleanhtml.xsl,v 1.2 2004/03/06 02:26:04 antonio Exp $ 
+$Id$ 
 
 -->
 <xsl:template match="/" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+  <xsl:apply-templates select="envelope/xhtml:html/xhtml:body"/>
   <xsl:apply-templates select="xhtml:html/xhtml:body"/>
   <xsl:apply-templates select="html/body"/>
 </xsl:template>

Added: cocoon/trunk/src/blocks/portal/samples/coplets/html/envelope.xml
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/coplets/html/envelope.xml?view=auto&rev=122550
==============================================================================
--- (empty file)
+++ cocoon/trunk/src/blocks/portal/samples/coplets/html/envelope.xml	Thu Dec 16 05:58:24 2004
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<envelope/>
\ No newline at end of file

Modified: cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap	(original)
+++ cocoon/trunk/src/blocks/portal/samples/coplets/html/sitemap.xmap	Thu Dec 16 05:58:24 2004
@@ -19,6 +19,16 @@
 <map:pipelines>
     
     <map:pipeline>	
+        <map:match pattern="app-coplet">
+            <map:generate src="envelope.xml"/>
+            <map:transform type="portal-proxy">
+              <map:parameter name="envelope-tag" value="envelope"/>
+            </map:transform>
+            <map:transform type="xslt" src="cleanhtml.xsl"/>
+            <map:transform type="portal-html-linktoeventlink"/>
+            <map:serialize type="xml"/>
+        </map:match>
+
         <map:match pattern="application">
             <map:generate src="{coplet:temporaryAttributes/application-uri}?copletid={coplet:#}"/>
             <map:transform type="xslt" src="cleanhtml.xsl"/>

Modified: cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml	(original)
+++ cocoon/trunk/src/blocks/portal/samples/profiles/copletdata/portal.xml	Thu Dec 16 05:58:24
2004
@@ -393,4 +393,18 @@
          <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon://samples/flow/jxcalc/</value>
       </attribute>
    </coplet-data>
+
+   <!-- Example for the application coplet -->
+   <coplet-data id="Google" name="standard">
+      <title>Application</title>
+      <coplet-base-data>Application</coplet-base-data>
+      <attribute>
+         <name>uri</name>
+         <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/coplets/html/app-coplet</value>
+      </attribute>
+      <attribute>
+         <name>start-uri</name>
+         <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.google.com/index.html</value>
+      </attribute>
+   </coplet-data>
 </coplets>

Modified: cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml	(original)
+++ cocoon/trunk/src/blocks/portal/samples/profiles/copletinstancedata/portal.xml	Thu Dec
16 05:58:24 2004
@@ -128,5 +128,8 @@
    <coplet-instance-data id="app-test-4" name="standard">
       <coplet-data>app-test-two</coplet-data>
    </coplet-instance-data>
+   <coplet-instance-data id="Google-1" name="standard">
+      <coplet-data>Google</coplet-data>
+   </coplet-instance-data>
 
 </coplets>

Modified: cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml	(original)
+++ cocoon/trunk/src/blocks/portal/samples/profiles/layout/portal.xml	Thu Dec 16 05:58:24
2004
@@ -312,4 +312,9 @@
       </item>
     </composite-layout>
   </named-item>
+  <named-item name="AppCoplet">
+    <coplet-layout name="coplet">
+      <coplet-instance-data>Google-1</coplet-instance-data>
+    </coplet-layout>
+  </named-item>
 </composite-layout>

Modified: cocoon/trunk/src/blocks/portal/samples/sitemap.xmap
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/samples/sitemap.xmap?view=diff&rev=122550&p1=cocoon/trunk/src/blocks/portal/samples/sitemap.xmap&r1=122549&p2=cocoon/trunk/src/blocks/portal/samples/sitemap.xmap&r2=122550
==============================================================================
--- cocoon/trunk/src/blocks/portal/samples/sitemap.xmap	(original)
+++ cocoon/trunk/src/blocks/portal/samples/sitemap.xmap	Thu Dec 16 05:58:24 2004
@@ -36,6 +36,8 @@
         logger="sitemap.transformer.portal.eventlink" />
       <map:transformer name="portal-html-eventlink" src="org.apache.cocoon.portal.transformation.HTMLEventLinkTransformer"
         logger="sitemap.transformer.portal.eventlink.html"/>
+      <map:transformer name="portal-html-linktoeventlink" src="org.apache.cocoon.portal.transformation.LinkTransformer"
+        logger="sitemap.transformer.portal.eventlink" />
     </map:transformers>
     <map:readers default="resource">
       <map:reader name="portal-proxy" src="org.apache.cocoon.portal.reading.ProxyReader"
@@ -146,6 +148,9 @@
     <map:pipeline>
 
       <!-- images -->
+      <map:match pattern="proxy-**">
+        <map:read type="portal-proxy"/>
+      </map:match>
       <map:match pattern="images/*.gif">
         <map:read mime-type="image/gif" src="{global:skin}images/{1}.gif"/>
       </map:match>
@@ -199,6 +204,7 @@
           </map:transform>
           <map:transform type="cinclude"/>
           <map:transform type="portal-coplet"/>
+          <map:transform type="portal-new-eventlink"/>
           <map:transform type="encodeURL"/>
           <!--
           <map:transform type="htmlroot" />

Mime
View raw message