You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2005/09/01 11:10:38 UTC

svn commit: r265679 [8/12] - in /cocoon/blocks/portal-sample/trunk: ./ WEB-INF/ WEB-INF/xconf/ conf/ java/ java/org/ java/org/apache/ java/org/apache/cocoon/ java/org/apache/cocoon/portal/ java/org/apache/cocoon/portal/coplets/ java/org/apache/cocoon/p...

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2005 The Apache Software Foundation
+
+  Licensed 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:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <!--+ Include styling stylesheets, one for the widgets, the other one for the
+      | page. As 'forms-advanced-field-styling.xsl' is a specialization of
+      | 'forms-field-styling.xsl' the latter one is imported there. If you don't
+      | want advanced styling of widgets, change it here!
+      | See xsl:include as composition and xsl:import as extension/inheritance.
+      +-->
+  <xsl:include href="resource://org/apache/cocoon/forms/resources/forms-page-styling.xsl"/>
+  <xsl:include href="resource://org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl"/>
+
+  <!-- Location of the resources directory, where JS libs and icons are stored -->
+  <xsl:param name="resources-uri">resources</xsl:param>
+  
+  <xsl:template match="head">
+    <head>
+      <xsl:apply-templates/>
+      <xsl:apply-templates select="." mode="forms-page"/>
+      <xsl:apply-templates select="." mode="forms-field"/>
+    </head>
+  </xsl:template>
+
+  <xsl:template match="body">
+    <body>
+      <!--+ !!! If template with mode 'forms-page' adds text or elements
+          |        template with mode 'forms-field' can no longer add attributes!!!
+          +-->
+      <xsl:apply-templates select="." mode="forms-page"/>
+      <xsl:apply-templates select="." mode="forms-field"/>
+      <xsl:apply-templates/>
+    </body>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" 
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+
+<!-- Process a tab  -->
+<xsl:template match="linktab-layout">
+<!-- ~~~~~ Begin body table ~~~~~ -->
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+  <!-- ~~~~~ Begin tab row ~~~~~ -->
+  <tr vAlign="top">
+  <td width="20%" align="top">
+  <br/>
+  &#160;Select:<br/><br/>
+     <xsl:for-each select="named-item">
+     
+      <xsl:choose>
+        <xsl:when test="not(@selected)">
+          &#160;&#160;&#160;<a href="{@parameter}"><xsl:value-of select="@name"/></a><br/><br/>
+        </xsl:when>
+        <xsl:otherwise>
+          &#160;&#160;&#160;<b><xsl:value-of select="@name"/></b><br/><br/>
+        </xsl:otherwise>
+      </xsl:choose> 
+      </xsl:for-each>
+  </td>
+				<td width="80%" align="top">
+					<xsl:apply-templates select="named-item"/>
+				</td>
+  </tr>
+</table>
+</xsl:template>
+
+<xsl:template match="named-item">
+  <xsl:apply-templates />
+</xsl:template>
+
+<!-- Copy all and apply templates -->
+
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()" />
+  </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed 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.
+-->
+
+<!--+ $Id$ 
+    |
+    | Description: Login page to HTML
+    |
+    +-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:param name="resource"/>
+
+<xsl:template match="content">
+<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody>
+  <tr>
+	<td bgColor="#ffffff" align="center">
+	  <br/>
+        <xsl:apply-templates/>
+      <br/>
+    </td>
+  </tr>
+  <tr>
+    <td bgColor="#ffffff" width="15">
+	  <img height="1" src="images/space.gif" width="15"/>
+    </td>
+  </tr>
+  <tr>
+    <td bgColor="#ffffff" align="center">
+	  <br/>
+         If you are not already registered, use this guest login:
+		 <br/><br/>
+		 User:	<b>guest</b>
+		 Password:
+		 <b>guest</b>
+		 <br/><br/>Or use this administrator login:<br/>
+		 User:
+		 <b>cocoon</b>
+		 Password:
+		 <b>cocoon</b>
+	   <br/><br/>
+     </td>
+   </tr>
+</tbody></table>
+</xsl:template>
+
+<xsl:template match="form">
+	<form method="post" target="_top">
+	    <xsl:choose>
+	        <xsl:when test="$resource=''">
+  		        <xsl:attribute name="action"><xsl:value-of select="normalize-space(url)"/>?resource=portal</xsl:attribute>
+	        </xsl:when>
+	        <xsl:otherwise>
+        		<xsl:attribute name="action"><xsl:value-of select="normalize-space(url)"/>?resource=<xsl:value-of select="$resource"/></xsl:attribute>
+	        </xsl:otherwise>
+	    </xsl:choose>
+		<table>
+		        <xsl:apply-templates select="field"/><br/>
+		</table>
+		<input type="submit" value="Login"></input>
+	</form>
+</xsl:template>
+
+<xsl:template match="field">
+	<tr>
+		<td>
+			<xsl:value-of select="@description"/>:
+		</td>
+		<td>
+			<input>
+				<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
+				<xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
+				<xsl:attribute name="size"><xsl:value-of select="@length"/></xsl:attribute>
+			</input>
+		</td>
+	</tr>
+</xsl:template>
+
+<!-- Copy all and apply templates -->
+<xsl:template match="@*|node()">
+	<xsl:copy>
+		<xsl:apply-templates select="@*|node()" />
+	</xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2005 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" 
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:param name="user"/>
+<xsl:param name="title"/>
+<xsl:param name="base"/>
+
+<xsl:template match="/">
+<html>
+	<head>
+		<title><xsl:value-of select="$title"/></title>
+		<link type="text/css" rel="stylesheet" href="{$base}css/page.css"/>
+		<link type="text/css" rel="stylesheet" href="{$base}css/wsrp.css"/>
+	</head>
+	<body>
+	<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%">
+	<tbody> 
+	<!-- header row -->
+	<tr>
+	<td colspan="2"> 
+		<table border="2" cellPadding="0" cellSpacing="0" width="100%">
+		<tbody> 
+			<tr> 
+				<td colspan="2" noWrap="" height="10" bgcolor="#DDDDDD">
+				</td>
+			</tr>
+			<tr> 
+				<td bgcolor="#CCCCCC" height="100" align="center" 
+				valign="middle" width="100%">
+					<font size="80pt">Cocoon Portal</font>
+				</td>
+			</tr>
+			<tr> 
+				<td colspan="2" noWrap="" height="10" bgcolor="#DDDDDD" align="right">
+				    <xsl:if test="$user!='anonymous'">
+						<a href="{$base}logout" style="color:#4C6C8F;font-size:75%;">
+							Logout
+						</a><br/>
+						<a href="{$base}tools/" style="color:#4C6C8F;font-size:75%;">
+							Tools
+						</a>
+				    </xsl:if>
+				</td>
+			</tr>
+		</tbody>
+		</table>
+	</td>
+	</tr>
+	<!-- end header row -->
+	<!-- content/tab row -->
+	<tr>
+	<td>
+	  <xsl:apply-templates/>
+	</td>
+	</tr>
+	<!-- end content/tab row -->
+	<!-- footer row -->
+	<tr>
+	<td colspan="2"> 
+		<table border="2" cellPadding="0" cellSpacing="0" width="100%">
+		<tbody> 
+		<tr> 
+			<td colspan="2" noWrap="" height="10" bgcolor="#DDDDDD">
+				<img height="1" src="{$base}images/space.gif" width="1"/>
+			</td>
+		</tr>
+		<tr> 
+			<td colspan="2" noWrap="" height="30" bgcolor="#CCCCCC">
+				<img height="1" src="{$base}images/space.gif" width="1"/>
+			</td>
+		</tr>
+		</tbody>
+		</table>
+	</td>
+	</tr>
+	<!-- end footer row -->
+	</tbody>
+	</table>
+	</body>
+</html>
+
+</xsl:template>
+
+<!-- make links relative -->
+<xsl:template match="a[not(@target)]">
+	<a><xsl:apply-templates select="@*"/><xsl:attribute name="href"><xsl:value-of select="concat($base,@href)"/></xsl:attribute><xsl:apply-templates/></a>
+</xsl:template>
+<!-- make images relative -->
+<xsl:template match="img">
+	<img>
+		<xsl:apply-templates select="@*"/>
+		<xsl:attribute name="src"><xsl:value-of select="concat($base,@src)"/></xsl:attribute>
+	</img>
+</xsl:template>
+
+<!-- Copy all and apply templates -->
+
+<xsl:template match="@*|node()">
+   <xsl:copy>
+    <xsl:apply-templates select="@*|node()" />
+   </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" 
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- Process a row  -->
+<xsl:template match="row-layout">
+
+  <xsl:variable name="border">
+    <xsl:choose>
+      <xsl:when test="@border">
+        <xsl:value-of select="@border" />
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:text>0</xsl:text>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
+  <table border="{$border}" cellSpacing="10" width="100%">
+    <xsl:if test="@bgcolor">
+      <xsl:attribute name="bgcolor">
+        <xsl:value-of select="@bgcolor" /> 
+      </xsl:attribute>
+    </xsl:if>
+    <xsl:for-each select="item">
+      <tr vAlign="top">
+        <xsl:if test="@bgcolor">
+          <xsl:attribute name="bgcolor">
+            <xsl:value-of select="@bgcolor" /> 
+          </xsl:attribute>
+        </xsl:if>
+        <td>
+          <xsl:apply-templates />
+        </td>
+      </tr>
+    </xsl:for-each>
+  </table>
+</xsl:template>
+
+
+<!-- Copy all and apply templates -->
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()" />
+  </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" 
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+
+<!-- Process a tab  -->
+<xsl:template match="tab-layout">
+<!-- ~~~~~ Begin body table ~~~~~ -->
+<table border="2" cellpadding="0" cellspacing="0" width="100%">
+  <!-- ~~~~~ Begin tab row ~~~~~ -->
+  <tr>
+  <td>
+  <table summary="tab bar" border="2" cellpadding="0" cellspacing="0" width="100%">
+  <tr vAlign="top">
+     <xsl:for-each select="named-item">
+      <xsl:choose>
+          <xsl:when test="@selected">
+			<!-- ~~~~~ begin selected tab ~~~~~ -->
+				<td valign="middle" bgcolor="#DDDDDD">
+					<b>
+						<a href="{@parameter}">
+							<font color="#000000">
+								<xsl:value-of select="@name"/>
+							</font>
+						</a>
+					</b>
+				</td>
+			<!-- ~~~~~ end selected tab ~~~~~ -->
+			</xsl:when>
+			<xsl:otherwise>
+			<!-- ~~~~~ begin non selected tab ~~~~~ -->
+				<td valign="middle" bgcolor="#CCCCCC" >
+					<div class="tab">
+						<a href="{@parameter}">
+								<xsl:value-of select="@name"/>
+						</a>
+					</div>
+				</td>
+			<!-- ~~~~~ end non selected tab ~~~~~ -->
+          </xsl:otherwise>
+      </xsl:choose>
+    </xsl:for-each>
+	<!-- ~~~~~ last "blank" tab ~~~~~ -->
+	<td width="99%" bgcolor="#CCCCCC" align="right">
+	</td>
+  </tr>
+  </table>
+  </td>
+  </tr>
+  <!-- ~~~~~ End tab row ~~~~~ -->
+
+  <!-- ~~~~~ Begin content row ~~~~~ -->
+  <tr>
+    <td bgcolor="#FFFFFF">
+      <xsl:apply-templates/>
+    </td>
+  </tr>
+  <!-- ~~~~~ End content row ~~~~~ -->
+</table>
+</xsl:template>
+
+
+<!-- Copy all and apply templates -->
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()" />
+  </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl Thu Sep  1 02:08:10 2005
@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<xsl:stylesheet version="1.0" 
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="window">
+
+<xsl:variable name="bgColor">
+  <xsl:choose>
+    <xsl:when test="@bgColor">
+        <xsl:value-of select="@bgColor" />
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:text>#CCCCCC</xsl:text>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:variable>
+
+<table border="2" cellSpacing="0" cellpadding="0" width="100%">
+	<tr vAlign="top">
+		<td bgColor="{$bgColor}" valign="middle">
+			<font>
+				<xsl:attribute name="color">#ffffff</xsl:attribute>
+				<xsl:attribute name="face">Arial</xsl:attribute>
+				<xsl:attribute name="size">2</xsl:attribute>	
+				<xsl:choose>
+				    <xsl:when test="@title">
+					    <b><xsl:value-of select="@title"/></b>
+					</xsl:when>
+				    <xsl:otherwise>
+					    <b><xsl:value-of select="title"/></b>
+					</xsl:otherwise>
+				</xsl:choose>	
+			</font>
+	    </td>
+		<td align="right" bgColor="{$bgColor}">
+			<xsl:if test="basket-add-link">
+				<a href="{basket-add-link}">
+	  			    <img src="images/basket.gif" border="0" alt="Add Link"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="basket-add-content">
+				<a href="{basket-add-content}">
+	  			    <img src="images/basket.gif" border="0" alt="Add Content"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="edit-uri">
+				<a href="{edit-uri}">
+	  			    <img src="images/edit.gif" border="0" alt="Edit"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="help-uri">
+				<a href="{help-uri}">
+	  			    <img src="images/help.gif" border="0" alt="Help"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="view-uri">
+				<a href="{view-uri}">
+	  			    <img src="images/view.gif" border="0" alt="View"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="fullscreen-uri and not(maximize-uri)">
+				<a href="{fullscreen-uri}">
+	  			    <img src="images/customize.gif" border="0" alt="Full Screen"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="maxpage-uri">
+				<a href="{maxpage-uri}">
+	  			    <img src="images/show.gif" border="0" alt="Max Page"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="minpage-uri">
+				<a href="{minpage-uri}">
+	  			    <img src="images/show.gif" border="0" alt="Min Page"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="maximize-uri">
+				<a href="{maximize-uri}">
+	  			    <img src="images/maximize.gif" border="0" alt="Maximize"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="minimize-uri">
+				<a href="{minimize-uri}">
+	  			    <img src="images/minimize.gif" border="0" alt="Minimize"/>
+	  			</a>
+			</xsl:if>
+			<xsl:if test="remove-uri">
+				<a href="{remove-uri}">
+	  			    <img src="images/delete.gif" border="0" alt="Delete"/>
+	  			</a>
+			</xsl:if>
+		</td>
+	</tr>
+	<tr>
+		<td colSpan="2">
+               <xsl:apply-templates select="content"/>
+		</td>
+	</tr>
+</table>
+</xsl:template>
+
+<xsl:template match="content">
+    <xsl:apply-templates/>
+</xsl:template>
+
+<!-- Copy all and apply templates -->
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()" />
+  </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css Thu Sep  1 02:08:10 2005
@@ -0,0 +1,92 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed 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.
+*/
+#forms_calendarDiv {
+    position: absolute;
+    visibility: hidden;
+    background-color: white;
+    layer-background-color: white;
+}
+
+.forms_cpYearNavigation, .forms_cpMonthNavigation {
+    background-color:#C0C0C0;
+    text-align:center;
+    vertical-align:center;
+    text-decoration:none;
+    color:#000000;
+    font-weight:bold;
+}
+  
+.forms_cpDayColumnHeader, .forms_cpYearNavigation, .forms_cpMonthNavigation, .forms_cpCurrentMonthDate, .forms_cpCurrentMonthDateDisabled, .forms_cpOtherMonthDate, .forms_cpOtherMonthDateDisabled, .forms_cpCurrentDate, .forms_cpCurrentDateDisabled, .forms_cpTodayText, .forms_cpTodayTextDisabled, .forms_cpText {
+    font-family:arial;
+    font-size:8pt;
+}
+  
+TD.forms_cpDayColumnHeader {
+    text-align:right;
+    border:solid thin #C0C0C0;
+    border-width:0 0 19 0;
+}
+  
+.forms_cpCurrentMonthDate, .forms_cpOtherMonthDate, .forms_cpCurrentDate  {
+    text-align:right;
+    text-decoration:none;
+}
+  
+.forms_cpCurrentMonthDateDisabled, .forms_cpOtherMonthDateDisabled, .forms_cpCurrentDateDisabled {
+    color:#D0D0D0;
+    text-align:right;
+    text-decoration:line-through;
+}
+  
+.forms_cpCurrentMonthDate, .forms_cpCurrentDate {
+    color:#000000;
+}
+  
+.forms_cpOtherMonthDate {
+    color:#808080;
+}
+  
+TD.forms_cpCurrentDate {
+    color:white; background-color: #C0C0C0;
+    border-width:1;
+    border:solid thin #800000;
+}
+  
+TD.forms_cpCurrentDateDisabled {
+    border-width:1;
+    border:solid thin #FFAAAA;
+}
+  
+TD.forms_cpTodayText, TD.forms_cpTodayTextDisabled {
+    border:solid thin #C0C0C0;
+    border-width:1 0 0 0;
+}
+  
+A.forms_cpTodayText, SPAN.forms_cpTodayTextDisabled {
+    height:20px;
+}
+  
+A.forms_cpTodayText {
+    color:black;
+}
+  
+.forms_cpTodayTextDisabled {
+    color:#D0D0D0;
+}
+  
+.forms_cpBorder {
+    border:solid thin #808080;
+}

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css Thu Sep  1 02:08:10 2005
@@ -0,0 +1,75 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed 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.
+*/
+.forms-tab {
+    background-color: white;
+    border: 1px solid black;
+    border-bottom-width: 0px;
+    padding: 2px 1em 2px 1em;
+    margin-right: 5px;
+    position: relative;
+    text-decoration: none;
+    top: -1px;
+    z-index: 1;
+    cursor: pointer;
+}
+
+.forms-tab.forms-activeTab {
+    font-weight: bold;
+    padding-top: 5px;
+    cursor: default;
+    z-index: 3;
+}
+
+.forms-tabContent {
+    background-color: white;
+    border: 1px solid black;
+    padding: 1em;
+    position: relative;
+    z-index: 2;
+}
+
+.forms-validation-message, a.forms-validation-message:link {
+    color: red;
+    font-weight: bold;
+}
+
+.forms-validation-errors {
+}
+
+.forms-validation-error {
+}
+
+.forms-field-required {
+	color:blue;
+    font-weight: bold;
+}
+
+.forms-help {
+    border-style: dotted;
+    border-width: 1px;
+    padding: 5px;
+    background-color:#FFFFC0; /* light yellow */
+    width: 200px; /* otherwise IE does a weird layout */
+    z-index:1000; /* must be higher than forms-tabContent */
+}
+
+.forms-doubleList select {
+    width: 150px;
+}
+
+.forms-doubleList input {
+    width: 40px;
+}

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css Thu Sep  1 02:08:10 2005
@@ -0,0 +1,28 @@
+/*
+* Copyright 1999-2005 The Apache Software Foundation
+*
+* Licensed 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.
+*/
+body { background-color: #FFFFFF; margin: 0px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif;	font-size : 100%;}
+
+.tab { font-size : 85%; border: 0 }
+.tab a:link {   text-decoration : none; color: #000066;  }
+.tab a:visited { text-decoration : none; color: #2A4A6D }
+.tab a:hover { color: #0000FF; }
+
+p,li  { font-size:10pt;
+        line-height:12pt;
+        font-family:Verdana, Helvetica, sans-serif;
+        letter-spacing:0.2mm;
+        word-spacing:0.8mm;
+        color:black; }

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css Thu Sep  1 02:08:10 2005
@@ -0,0 +1,65 @@
+/*
+* Copyright 2005 The Apache Software Foundation
+*
+* Licensed 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.
+*/
+<!-- all css-specification of an (wsrp-)portlet -->
+
+<!-- Fonts -->
+portlet-font                { font-size:10pt;}
+portlet-font-dim            { }
+
+<!-- Messages -->
+portlet-msg-status          { }
+portlet-msg-info            { } 
+portlet-msg-error           { }
+portlet-msg-alert           { }
+portlet-msg-success         { }
+
+<!-- Sections -->
+portlet-section-header      { }
+portlet-section-body        { }
+portlet-section-alternate   { }
+portlet-section-selected    { }
+portlet-section-subheader   { }
+portlet-section-footer      { }
+portlet-section-text        { }
+
+<!-- Tables -->
+portlet-table-header        { }
+portlet-table-body          { }
+portlet-table-alternate     { }
+portlet-table-selected      { }
+portlet-table-subheader     { }
+portlet-table-footer        { }
+portlet-table-text          { }
+
+<!-- Forms -->
+portlet-form-label          { }
+portlet-form-input-field    { }
+portlet-form-button         { }
+portlet-icon-label          { }
+portlet-dlg-icon-label      { }
+portlet-form-field-label    { }
+portlet-form-field          { }
+
+<!-- Menus -->
+portlet-menu                { }
+portlet-menu-item           { }
+portlet-menu-item-selected  { }
+portlet-menu-item-hover     { }
+portlet-menu-item-hover-selected { }
+portlet-menu-cascade-item   { }
+portlet-menu-cascade-item-selected { }
+portlet-menu-description    { }
+portlet-menu-caption        { }
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/basket.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/basket.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/basket.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/cal.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/cal.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/cal.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/customize.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/customize.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/customize.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/delete.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/delete.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/delete.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/edit.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/edit.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/edit.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/help.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/help.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/help.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/logout-door.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/logout-door.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/logout-door.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/maximize.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/maximize.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/maximize.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/minimize.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/minimize.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/minimize.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/portal-logo.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/portal-logo.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/portal-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/show.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/show.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/show.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/space.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/space.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/space.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-left.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-left.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-right.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-right.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-left.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-left.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-right.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-right.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/thumb.jpg
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/thumb.jpg?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/thumb.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/view.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/view.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/view.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-bottom.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-bottom.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-bottom.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-left.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-left.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-right.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-right.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-left.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-left.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-right.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-right.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-left.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-left.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-left.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-right.gif
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-right.gif?rev=265679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-right.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js (added)
+++ cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js Thu Sep  1 02:08:10 2005
@@ -0,0 +1,186 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed 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.
+*/
+/**
+ * Runtime JavaScript library for Cocoon forms.
+ *
+ * @author <a href="http://www.apache.org/~sylvain/">Sylvain Wallez</a>
+ * @version CVS $Id$
+ */
+
+// Handlers that are to be called in the document's "onload" event
+var forms_onloadHandlers = new Array();
+
+function forms_onload() {
+    for (var i = 0; i < forms_onloadHandlers.length; i++) {
+        forms_onloadHandlers[i].forms_onload();
+    }
+    // Clear it (we no more need them)
+    forms_onloadHandlers = null;
+}
+
+// Handlers that are to be called in form's "onsubmit" event
+//FIXME: this single var implies only one form per page, and needs to be
+//       visited if we decide to support several forms per page.
+var forms_onsubmitHandlers = new Array();
+
+function forms_onsubmit() {
+    if (forms_onsubmitHandlers == null) {
+        alert("onsubmit called twice!");
+    }
+
+    for (var i = 0; i < forms_onsubmitHandlers.length; i++) {
+        forms_onsubmitHandlers[i].forms_onsubmit();
+    }
+    // clear it
+    forms_onsubmitHandlers = null;
+}
+
+/**
+ * Submit the form containing an element, also storing in the hidden
+ * 'forms_submit_id' field the name of the element which triggered the submit.
+ */
+function forms_submitForm(element, name) {
+    if (name == undefined) {
+        name = element.name;
+    }
+    
+    var form = forms_getForm(element);
+    if (form == null) {
+        alert("Cannot find form for " + element);
+    } else {
+        form["forms_submit_id"].value = name;
+        // FIXME: programmatically submitting the form doesn't trigger onsubmit ? (both in IE and Moz)
+        forms_onsubmit();
+        form.submit();
+    }
+}
+
+/**
+ * Crawl the parents of an element up to finding a form.
+ */
+function forms_getForm(element) {
+    while(element != null && element.tagName != "FORM") {
+        element = element.parentNode;
+    }
+    return element;
+}
+
+/**
+ * Move a named element as an immediate child of the <body> element.
+ * This is required for help popups inside <wi:group> tabs. The reason is that CSS positioning
+ * properties ("left" and "top") on a block with a "position: absolute" are actually relative to
+ * the nearest ancestor that has a position of "absolute", "relative" or "fixed".
+ * See http://www.w3.org/TR/CSS21/visudet.html#containing-block-details $4
+ */
+
+function forms_moveInBody(element) {
+    element.parentNode.removeChild(element);
+    document.body.appendChild(element);
+}
+
+/**
+ * Create a popup window for a named element.
+ *
+ * @param id the ID of the element to make a popup with.
+ */
+function forms_createPopupWindow(id) {
+    var result = new PopupWindow(id);
+    result.autoHide();
+    // add to onload handlers
+    result.forms_id = id;
+    result.forms_onload = function() {
+        forms_moveInBody(document.getElementById(this.forms_id));
+    }
+    forms_onloadHandlers.push(result);
+    return result;
+}
+
+
+function forms_createOptionTransfer(id, submitOnChange) {
+    var result = new OptionTransfer(id + ".unselected", id);
+    result.setAutoSort(true);
+    // add to onload handlers
+    result.forms_id = id;
+    result.forms_onload = function() {
+        var form = forms_getForm(document.getElementById(this.forms_id));
+        this.init(form);
+        sortSelect(this.left);
+        sortSelect(this.right);
+    }
+    result.submitOnChange = submitOnChange;
+    result.forms_transferLeft = function() {
+        this.transferLeft();
+        if (this.submitOnChange) {
+            forms_submitForm(document.getElementById(this.forms_id));
+        }
+    }
+    result.forms_transferRight = function() {
+        this.transferRight();
+        if (this.submitOnChange) {
+            forms_submitForm(document.getElementById(this.forms_id));
+        }
+    }
+    result.forms_transferAllLeft = function() {
+        this.transferAllLeft();
+        if (this.submitOnChange) {
+            forms_submitForm(document.getElementById(this.forms_id));
+        }
+    };
+    result.forms_transferAllRight = function() {
+        this.transferAllRight();
+        if (this.submitOnChange) {
+            forms_submitForm(document.getElementById(this.forms_id));
+        }
+    };
+    forms_onloadHandlers.push(result);
+    
+    // add to onsubmit handlers
+    result.forms_onsubmit = function() {
+        // Select all options in the "selected" list to that
+        // its values are sent.
+        selectAllOptions(this.right);
+    }
+    forms_onsubmitHandlers.push(result);
+    return result;
+}
+
+
+/**
+ * Show a tab in a <wi:group>
+ *
+ * @param tabgroup (string) name of the <wi:group>
+ * @param idx (integer) index of the selected tab
+ * @param length (integer) total number of tabs
+ * @param state (string, optional) name of the input storing the tabgroup state
+ */
+function forms_showTab(tabgroup, idx, length, state) {
+    for (var i = 0; i < length; i++) {
+        // Change tab status (selected/unselected)
+        var tab = document.getElementById(tabgroup + "_tab_" + i);
+        if (tab != null) {
+            tab.className = (i == idx) ? 'forms-tab forms-activeTab': 'forms-tab';
+        }
+        // Change tab content visibilty
+        var tabitems = document.getElementById(tabgroup + "_items_" + i);
+        if (tabitems != null) {
+            tabitems.style.display = (i == idx) ? '' : 'none';
+        }
+    }
+    // Change state value
+    if (state.length > 0) {
+        document.forms[0][state].value = idx;
+    }
+}
\ No newline at end of file

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js
------------------------------------------------------------------------------
    svn:keywords = Id