cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r332551 - in /cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs: portal-bottom.xml portal-demo.xml portal-intro.xml portal-left.xml portal-right.xml styles/document2html.xsl
Date Fri, 11 Nov 2005 13:48:54 GMT
Author: cziegeler
Date: Fri Nov 11 05:48:47 2005
New Revision: 332551

URL: http://svn.apache.org/viewcvs?rev=332551&view=rev
Log:
Fix html creation (no s1 tag anymore)

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-bottom.xml
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-demo.xml
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-intro.xml
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-left.xml
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-right.xml
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/styles/document2html.xsl

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-bottom.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-bottom.xml?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-bottom.xml
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-bottom.xml
Fri Nov 11 05:48:47 2005
@@ -22,10 +22,10 @@
 	 <type>Overview document</type> 
   </header> 
   <body> 
-	 <s1 title="Further Information"> 
+	 <section title="Further Information"> 
 		<p>For further information have a look at the Cocoon documentation
               and at the other portal demos available using the tab above.</p>
-   </s1> 
+   </section> 
 
   </body>
 </document>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-demo.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-demo.xml?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-demo.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-demo.xml Fri
Nov 11 05:48:47 2005
@@ -22,7 +22,7 @@
 	 <type>Overview document</type> 
   </header> 
   <body> 
-	 <s1 title="The Apache Cocoon Portal"> 
+	 <section title="The Apache Cocoon Portal"> 
 		<p>This is a demo of the Cocoon Portal Engine.</p>
         <p>The Cocoon portal page you currently view displays some so called
           <em>Coplets</em> (= Cocoon Portlets). Each coplet displays
@@ -43,8 +43,8 @@
           feature might have an impact on the performance.
         </p>
         <p>For more information <fork href="http://cocoon.apache.org">visit the
Cocoon Homepage</fork>.</p>
-     </s1> 
-     <s1 title="The JSR 168">
+     </section> 
+     <section title="The JSR 168">
         <p>The Cocoon portal supports portlets conforming to the JSR 168. The JSR 168
tab contains 
            a sample using the testsuite from the <fork href="http://portals.apache.org/pluto">Pluto
project</fork>.</p>
         <p>These samples only work if you follow these installation instructions:</p>
@@ -59,8 +59,8 @@
         <p>The current implementation searches for portlets in all directories that
are next to
          the Cocoon webapp directory. So, if you put Cocoon into the webapps directory of
Tomcat,
          you should put your portlets there as well.</p>
-     </s1>
-     <s1 title="WSRP">
+     </section>
+     <section title="WSRP">
         <p>The Cocoon portal supports portlets conforming to the WSRP. The WSRP tab
contains 
            a sample using the testsuite from the <fork href="http://ws.apache.org/wsrp4j">WSRP4J
project</fork>.</p>
         <p>These samples only work if you follow these installation instructions:</p>
@@ -68,6 +68,6 @@
          <li>Get the WSRP4J project and install it into Tomcat (Test WSRP using the
SwingConsumer now).</li>
          <li>Start up Tomcat (with the WSRP producer) and Cocoon (using Jetty) and
run the Cocoon portal demo. You should see the WSRP portlets now.</li>
         </ul>
-     </s1>
+     </section>
   </body>
 </document>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-intro.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-intro.xml?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-intro.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-intro.xml Fri
Nov 11 05:48:47 2005
@@ -22,7 +22,7 @@
 	 <type>Overview document</type> 
   </header> 
   <body> 
-	 <s1 title="The Apache Cocoon Portal"> 
+	 <section title="The Apache Cocoon Portal"> 
 		<p>This is a demo of the Cocoon Portal Engine.</p>
         <p>The Cocoon portal page you currently view displays some so called
           <em>Coplets</em> (= Cocoon Portlets). Each coplet displays
@@ -35,7 +35,7 @@
           feature might have an impact on the performance.
         </p>
         <p>For more information <fork href="http://cocoon.apache.org">visit the
Cocoon Homepage</fork>.</p>
-     </s1> 
+     </section> 
 
   </body>
 </document>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-left.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-left.xml?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-left.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-left.xml Fri
Nov 11 05:48:47 2005
@@ -22,14 +22,14 @@
 	 <type>Overview document</type> 
   </header> 
   <body> 
-	 <s1 title="Flexible Layout"> 
+	 <section title="Flexible Layout"> 
        <p>You are absolutly free in defining the portal layout. You can combine
          the usual layout elements, like rows and columns, in any order and
          even can nest them.</p>
        <p>By this you can create coplets, like the sample above and below, that span
          more than one column etc.</p>
        <p>Even more complex elements, like tabs are possible.</p>
-   </s1> 
+   </section> 
 
   </body>
 </document>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-right.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-right.xml?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-right.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/portal-right.xml Fri
Nov 11 05:48:47 2005
@@ -22,11 +22,11 @@
 	 <type>Overview document</type> 
   </header> 
   <body> 
-<s1 title="Customization"> 
+<section title="Customization"> 
 <p>The whole portal engine is built up by a set of (Avalon) components.
   You can customize (change/enhance) every aspect of the portal by
   using a different component for the same task.</p>
-   </s1> 
+   </section> 
 
   </body>
 </document>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/styles/document2html.xsl
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/styles/document2html.xsl?rev=332551&r1=332550&r2=332551&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/styles/document2html.xsl
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/coplets/docs/styles/document2html.xsl
Fri Nov 11 05:48:47 2005
@@ -18,8 +18,6 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:param name="isfaq"/>
   <xsl:template match="document">
-  	<!-- Allready done by portal!
-    <td colspan="2" valign="top" class="content"-->
       <xsl:if test="normalize-space(header/title)!=''">
         <h1>
           <xsl:value-of select="header/title"/>
@@ -44,31 +42,8 @@
         </p>
       </xsl:if>
       <xsl:apply-templates select="body"/>
-    <!--/td  see above!-->
   </xsl:template>
   <xsl:template match="body">
-    <xsl:if test="section and not($isfaq='true')">
-      <ul class="minitoc">
-        <xsl:for-each select="section">
-          <li>
-            <a href="#{generate-id()}">
-              <xsl:value-of select="title"/>
-            </a>
-            <xsl:if test="section">
-              <ul class="minitoc">
-                <xsl:for-each select="section">
-                  <li>
-                    <a href="#{generate-id()}">
-                      <xsl:value-of select="title"/>
-                    </a>
-                  </li>
-                </xsl:for-each>
-              </ul>
-            </xsl:if>
-          </li>
-        </xsl:for-each>
-      </ul>
-    </xsl:if>
     <xsl:apply-templates/>
   </xsl:template>
 <!--  section handling
@@ -78,13 +53,11 @@
     nesting depth
 -->
   <xsl:template match="section">
-    <a name="{generate-id()}"/>
-    <xsl:if test="normalize-space(@id)!=''">
-      <a name="{@id}"/>
+    <xsl:if test="title">
+      <h3>
+        <xsl:value-of select="title"/>
+      </h3>
     </xsl:if>
-    <h3>
-      <xsl:value-of select="title"/>
-    </h3>
     <xsl:apply-templates select="*[not(self::title)]"/>
   </xsl:template>
   <xsl:template match="section/section">



Mime
View raw message