forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r481652 - in /forrest/trunk/whiteboard/forrest2/wicket-demo/src: xdocs/subdir/navigation.xml xslt/navigation-to-internal.xsl
Date Sat, 02 Dec 2006 22:34:06 GMT
Author: rgardler
Date: Sat Dec  2 14:34:06 2006
New Revision: 481652

URL: http://svn.apache.org/viewvc?view=rev&rev=481652
Log:
Add a "parent" element to the navigation document

Modified:
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/subdir/navigation.xml
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl

Modified: forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/subdir/navigation.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/subdir/navigation.xml?view=diff&rev=481652&r1=481651&r2=481652
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/subdir/navigation.xml (original)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/subdir/navigation.xml Sat Dec
 2 14:34:06 2006
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <navigation>
+  <parent label="Parent"/>
   <item label="Subdir Item 1"/>
   <item label="Subdir Item 2"/>
   <item label="Subdir Item 3"/>

Modified: forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl?view=diff&rev=481652&r1=481651&r2=481652
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl (original)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl Sat
Dec  2 14:34:06 2006
@@ -29,12 +29,14 @@
 			</head>
 			<body>
 			  <ul>
-				<xsl:apply-templates select="item"/>
+				<xsl:apply-templates/>
 			  </ul>
 			</body>
 		</html>
 	</xsl:template>
 	
+	<!-- The item element provides a link to some otehr item in the
+	content object. -->
 	<xsl:template match="item">
 	  <li>
 	    <xsl:choose>
@@ -49,6 +51,17 @@
 	    </xsl:otherwise>
 	    </xsl:choose>
 	  </li>
+	</xsl:template>
+	
+	<!--  The parent element provides a link back to the
+	      parent directory. -->
+	<xsl:template match="parent">
+	  <li>
+	    <a href="..">
+	      <xsl:value-of select="@label"/>
+	    </a>
+	  </li>
+	    
 	</xsl:template>
 
 </xsl:stylesheet>



Mime
View raw message