cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r314826 - in /cocoon/trunk/src/webapp/samples: blocks/samples-pages.xml common/style/xsl/html/simple-samples2html.xsl
Date Wed, 12 Oct 2005 09:00:07 GMT
Author: bdelacretaz
Date: Wed Oct 12 01:59:59 2005
New Revision: 314826

URL: http://svn.apache.org/viewcvs?rev=314826&view=rev
Log:
make 'all samples' link more prominent

Modified:
    cocoon/trunk/src/webapp/samples/blocks/samples-pages.xml
    cocoon/trunk/src/webapp/samples/common/style/xsl/html/simple-samples2html.xsl

Modified: cocoon/trunk/src/webapp/samples/blocks/samples-pages.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/samples/blocks/samples-pages.xml?rev=314826&r1=314825&r2=314826&view=diff
==============================================================================
--- cocoon/trunk/src/webapp/samples/blocks/samples-pages.xml (original)
+++ cocoon/trunk/src/webapp/samples/blocks/samples-pages.xml Wed Oct 12 01:59:59 2005
@@ -33,7 +33,7 @@
             <block name="portal-sample"/>
     </blocks>
     <links>
-    		<link href="all-samples">All samples</link>
+    		<link role="see-also" href="all-samples">All samples</link>
     		<link href="/">Home</link>
     </links>
   </page>
@@ -44,7 +44,7 @@
     </title>
     <blocks/>
     <links>
-    		<link href="main-samples">Main samples</link>
+    		<link role="see-also" href="main-samples">Main samples</link>
     		<link href="../test/">Test pages</link>
     </links>
   </page>

Modified: cocoon/trunk/src/webapp/samples/common/style/xsl/html/simple-samples2html.xsl
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/samples/common/style/xsl/html/simple-samples2html.xsl?rev=314826&r1=314825&r2=314826&view=diff
==============================================================================
--- cocoon/trunk/src/webapp/samples/common/style/xsl/html/simple-samples2html.xsl (original)
+++ cocoon/trunk/src/webapp/samples/common/style/xsl/html/simple-samples2html.xsl Wed Oct
12 01:59:59 2005
@@ -27,6 +27,8 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
 
   <xsl:param name="contextPath"/>
+  <xsl:variable name="stdLinks" select="samples/links/link[not(@role)]"/>
+  <xsl:variable name="seeAlsoLinks" select="samples/links/link[@role='see-also']"/>
 
   <xsl:template match="/">
     <html>
@@ -48,11 +50,14 @@
          <tr>
            <td width="75%">
              <h2><xsl:value-of select="samples/@name"/></h2>
+             <xsl:if test="$seeAlsoLinks">
+               <div class="seeAlsoLinks">
+                 <b>See also:</b>&#160;<xsl:apply-templates select="$seeAlsoLinks"/>
+               </div>
+             </xsl:if>
            </td>
            <td nowrap="nowrap" align="right">
-	           <xsl:if test="samples/links/*">
-	             <xsl:apply-templates select="samples/links"/>
-	           </xsl:if>
+	           <xsl:apply-templates select="$stdLinks"/>
 	           <xsl:if test="not(samples/@add-view-links='false')">
 		             Orthogonal views:
 		             <a href="?cocoon-view=content">Content</a>



Mime
View raw message