Author: rgardler
Date: Mon Nov 20 16:02:28 2006
New Revision: 477418

URL: http://svn.apache.org/viewvc?view=rev&rev=477418
Log:
a simple demo showing integration with the Wicket webapplication framework. 
Wicket is currently only used for 'skinning', which is a bit of a waste really, 
but this demo could grow to illustrate forms processing etc.

Added:
    forrest/trunk/whiteboard/forrest2/wicket-demo/
    forrest/trunk/whiteboard/forrest2/wicket-demo/.project   (with props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/bin/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml   
(with props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java
   (with props)
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html
   (with props)
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java
   (with props)
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html
   (with props)
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java
   (with props)
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java
   (with props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml   (with 
props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java
   (with props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml   
(with props)
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/welcome.xhtml2
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/welcome.xhtml2
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/placeHolder.xhtml2
    forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/
    
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl
   (with props)

Added: forrest/trunk/whiteboard/forrest2/wicket-demo/.project
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/.project?view=auto&rev=477418
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/.project (added)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/.project Mon Nov 20 16:02:28 
2006
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>forrest2-wicket-demo</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>wicketbench.associatedMarkupAuditor</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>wicketbench.wicketnature</nature>
+       </natures>
+</projectDescription>

Propchange: forrest/trunk/whiteboard/forrest2/wicket-demo/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml?view=auto&rev=477418
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml (added)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml Mon 
Nov 20 16:02:28 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd";>
+
+<beans>        
+       
+       <!-- ============================================= -->
+       <!--                 Readers                                       -->
+       <!-- ============================================= -->
+
+       <bean id="http" 
class="org.apache.forrest.core.reader.HTTPReader"></bean>
+       <bean id="file" 
class="org.apache.forrest.core.reader.FileReader"></bean>
+       <bean id="navigation" 
class="org.apache.forrest.examples.reader.NavigationReader"></bean>
+       
+       <!-- ============================================= -->
+       <!--               Input Plugins                   -->
+       <!-- ============================================= -->
+
+       <bean id="org.apache.forrest.example.Navigation"
+               class="org.apache.forrest.core.plugin.XSLTInputPlugin">
+               <property name="xsltURL"
+                       value="src/xslt/navigation-to-internal.xsl" />
+       </bean>
+       
+       <!-- ============================================= -->
+       <!--               Output Plugins                  -->
+       <!-- ============================================= -->
+
+       <bean id="html-output"
+               class="org.apache.forrest.core.plugin.XSLTOutputPlugin">
+               <property name="pattern" value="html" />
+               <property name="xsltPath"
+                       value="/xdocs/samples/xslt/internal-to-html.xsl" />
+       </bean>
+
+</beans>

Propchange: forrest/trunk/whiteboard/forrest2/wicket-demo/src/forrestContext.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,24 @@
+package org.apache.forrest.examples.reader;
+
+import java.net.MalformedURLException;
+import java.net.URI;
+
+import org.apache.forrest.core.IController;
+import org.apache.forrest.core.document.AbstractSourceDocument;
+import org.apache.forrest.core.document.XMLSourceDocument;
+import org.apache.forrest.core.exception.ProcessingException;
+import org.apache.forrest.core.locationMap.Location;
+import org.apache.forrest.core.reader.AbstractReader;
+
+public class NavigationReader extends AbstractReader {
+
+       public AbstractSourceDocument read(IController controller, URI 
requestURI,
+                       Location location) throws MalformedURLException,
+                       ProcessingException {
+               String content = "<navigation><item label=\"Item 1\"/><item 
label=\"Item 2\"/><item label=\"Item 3\"/></navigation>";
+               String type = "org.apache.forrest.example.Navigation";
+               XMLSourceDocument doc = new XMLSourceDocument(content, type);
+               return doc;
+       }
+
+}

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/reader/NavigationReader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,6 @@
+<html xmlns:wicket>
+<wicket:panel>
+  <span wicket:id="content">FIXME: Some Forrest generated content goes 
here</span>
+</wicket:panel>
+</html>
+  
\ No newline at end of file

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,33 @@
+package org.apache.forrest.examples.wicket;
+
+import java.net.URI;
+
+import org.apache.forrest.core.Controller;
+import org.apache.forrest.core.document.AbstractOutputDocument;
+
+import wicket.MarkupContainer;
+import wicket.markup.html.basic.Label;
+import wicket.markup.html.panel.Panel;
+
+/**
+ * A panel to deisplay content generated by Forrest2
+ */
+public class Forrest2Panel extends Panel {
+
+       public Forrest2Panel(MarkupContainer parent, String id, String 
strRequestURI) {
+               super(parent, id);
+               try {
+                       Controller controller = new Controller();
+                       URI requestURI = new URI(strRequestURI);
+                       AbstractOutputDocument doc;
+                       doc = controller.getOutputDocument(requestURI);
+                       Label label = new Label(this, "content", 
doc.getContentAsString());
+                       label.setEscapeModelStrings(false);
+               } catch (Exception e) {
+                       new Label(this, "content",  
+                                       "Unable to process request with 
Forrest2: "
+                                                       + e.getMessage());
+               }
+       }
+
+}

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/Forrest2Panel.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml";
+       xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en" lang="en">
+       <head>
+               <title>Forrest2-Wicket Integration Example</title>
+       </head>
+       <body>
+       <div class="content">
+               <div wicket:id="header" class="header">
+                       FIXME: Header goes here
+               </div>
+               
+               <div wicket:id="mainNavigation" class="left_column">
+                       FIXME: mainNavigation goes here
+               </div>
+               
+               <div wicket:id="body" class="content_main">
+                       FIXME: Body goes here
+               </div>
+               
+               <div wicket:id="footer" class="footer">
+                       FIXME: Footer Goes here
+           </div>
+       </div>
+       </body>
+</html>

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,13 @@
+package org.apache.forrest.examples.wicket;
+
+import wicket.markup.html.WebPage;
+
+public class WelcomePage extends WebPage {
+       
+       public WelcomePage() {
+               new Forrest2Panel(this, "header", "header/welcome.html");
+               new Forrest2Panel(this, "mainNavigation", 
"navigation/welcome.html");
+               new Forrest2Panel(this, "body", "body/welcome.html");
+               new Forrest2Panel(this, "footer", "footer/welcome.html");
+       }
+}

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WelcomePage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,18 @@
+package org.apache.forrest.examples.wicket;
+
+import wicket.protocol.http.WebApplication;
+
+/**
+ * @author Ross Gardler
+ */
+public class WicketApp extends WebApplication {
+    public WicketApp() {
+        
+    }
+
+       @Override
+       public Class<WelcomePage> getHomePage() {
+               return WelcomePage.class;
+       }
+}
+  
\ No newline at end of file

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/java/org/apache/forrest/examples/wicket/WicketApp.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml?view=auto&rev=477418
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml (added)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml Mon Nov 
20 16:02:28 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<locationmap>
+  <location pattern="header/(.*)\..*">
+    <source href="classpath:/panel/header/$(1).xhtml2"/>
+  </location>
+  
+  <location pattern="navigation/(.*)\..*">
+    <source href="navigation:/$(1)"/>
+  </location>
+  
+  <location pattern="body/(.*)\..*">
+    <source href="classpath:/placeHolder.xhtml2"/>
+  </location>
+  
+  <location pattern="footer/(.*)\..*">
+    <source href="classpath:/panel/footer/$(1).xhtml2"/>
+  </location>
+</locationmap>
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/forrest2/wicket-demo/src/locationmap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,22 @@
+package org.apache.forrest.examples.wicket;
+
+import org.apache.forrest.examples.wicket.WelcomePage;
+
+import wicket.Component;
+import wicket.MarkupContainer;
+import wicketbench.junit.WicketBenchTestCase;
+import wicketbench.web.IComponentFactory;
+
+public class ApplicationTest extends WicketBenchTestCase {
+
+       @Override
+       public IComponentFactory<?> createFactory() {
+               return new IComponentFactory() {
+                       public Component createComponent(MarkupContainer 
container, String id) {
+               WelcomePage page = new WelcomePage();
+                return page;
+                       }
+        };
+       }
+
+}

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/test/org/apache/forrest/examples/wicket/ApplicationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml?view=auto&rev=477418
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml 
(added)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml 
Mon Nov 20 16:02:28 2006
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+      "http://java.sun.com/dtd/web-app_2_3.dtd";>
+
+<web-app>
+
+  <servlet>
+    <servlet-name>WicketApplication</servlet-name>
+    <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
+    <init-param>
+      <param-name>applicationClassName</param-name>
+      <param-value>org.apache.forrest.examples.WicketApp</param-value>
+    </init-param>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>WicketApplication</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+  
+</web-app>
+  
\ No newline at end of file

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/welcome.xhtml2
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/welcome.xhtml2?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/welcome.xhtml2
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/footer/welcome.xhtml2
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,13 @@
+<?xml-stylesheet type="text/css" 
+                 href="http://www.w3.org/MarkUp/style/xhtml2.css";?>
+<html xmlns="http://www.w3.org/2002/06/xhtml2"; xml:lang="en"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+      xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ 
http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd";
+>
+  <head> 
+    <title>Footer</title>
+  </head> 
+  <body> 
+    <h>Footer</h>
+  </body>
+</html>
\ No newline at end of file

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/welcome.xhtml2
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/welcome.xhtml2?view=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/welcome.xhtml2
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/panel/header/welcome.xhtml2
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,13 @@
+<?xml-stylesheet type="text/css" 
+                 href="http://www.w3.org/MarkUp/style/xhtml2.css";?>
+<html xmlns="http://www.w3.org/2002/06/xhtml2"; xml:lang="en"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+      xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ 
http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd";
+>
+  <head> 
+    <title>Header</title>
+  </head> 
+  <body> 
+    <h>Header</h>
+  </body>
+</html>
\ No newline at end of file

Added: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/placeHolder.xhtml2
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/placeHolder.xhtml2?view=auto&rev=477418
==============================================================================
--- forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/placeHolder.xhtml2 
(added)
+++ forrest/trunk/whiteboard/forrest2/wicket-demo/src/xdocs/placeHolder.xhtml2 
Mon Nov 20 16:02:28 2006
@@ -0,0 +1,15 @@
+<?xml-stylesheet type="text/css" 
+                 href="http://www.w3.org/MarkUp/style/xhtml2.css";?>
+<html xmlns="http://www.w3.org/2002/06/xhtml2"; xml:lang="en"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+      xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ 
http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd";
+>
+  <head> 
+    <title>Placeholder</title>
+  </head> 
+  <body> 
+    <h>Placeholder</h>
+    <p>This is a placeholder document. Nothing to see
+    here, yet.</p>
+  </body>
+</html>
\ No newline at end of file

Added: 
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=auto&rev=477418
==============================================================================
--- 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl
 (added)
+++ 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl
 Mon Nov 20 16:02:28 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/2002/06/xhtml2";
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+       xmlns:html="http://www.w3.org/2002/06/xhtml2";>
+
+       <xsl:template match="navigation">
+               <html xmlns=" http://www.w3.org/2002/06/xhtml2"; 
+                     xml:lang="en" 
+                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
+                     xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ 
http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd";>
+                       <head>
+                               <title>Navigation</title>
+                       </head>
+                       <body>
+                         <ul>
+                               <xsl:apply-templates select="item"/>
+                         </ul>
+                       </body>
+               </html>
+       </xsl:template>
+       
+       <xsl:template match="item">
+         <li>
+           <xsl:value-of select="@label"/>
+         </li>
+       </xsl:template>
+
+</xsl:stylesheet>

Propchange: 
forrest/trunk/whiteboard/forrest2/wicket-demo/src/xslt/navigation-to-internal.xsl
------------------------------------------------------------------------------
    svn:eol-style = native