cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r425058 - in /cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF: coplets/login/login.xml coplets/login/sitemap.xmap skins/modern/styles/login-html.xsl
Date Mon, 24 Jul 2006 14:12:59 GMT
Author: cziegeler
Date: Mon Jul 24 07:12:59 2006
New Revision: 425058

URL: http://svn.apache.org/viewvc?rev=425058&view=rev
Log:
Cleanup

Modified:
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/login.xml
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/sitemap.xmap
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/skins/modern/styles/login-html.xsl

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/login.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/login.xml?rev=425058&r1=425057&r2=425058&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/login.xml
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/login.xml
Mon Jul 24 07:12:59 2006
@@ -16,15 +16,13 @@
 -->
 
 <!-- $Id$ 
- Description: The login form for the portal
-
+     Description: The login form for the portal
 -->
-
 <content>
-      <h3>Personalized Area</h3>
-	<form>
-		<url>auth</url>
-		<field name="name" type="text" length="24" description="User"/>
-		<field name="password" type="password" length="24" description="Password"/>
-	</form>
+  <h3>Personalized Area</h3>
+  <form>
+    <url>auth</url>
+    <field name="name" type="text" length="24" description="User"/>
+    <field name="password" type="password" length="24" description="Password"/>
+  </form>
 </content>

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/sitemap.xmap?rev=425058&r1=425057&r2=425058&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/coplets/login/sitemap.xmap
Mon Jul 24 07:12:59 2006
@@ -14,21 +14,20 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<!-- SVN $Id$ -->
+<!-- @version $Id$ -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
 <map:pipelines>
     
   <map:pipeline>	
 
-     <!-- this is a login coplet -->
-    <map:match pattern="coplet">
+      <!-- this is a login coplet -->
+      <map:match pattern="coplet">
         <map:generate src="login.xml"/>
         <map:transform src="{portal-skin:skin.basepath}/styles/login-html.xsl"/>
-	<map:serialize type="xml"/>
-    </map:match>
+	    <map:serialize type="xml"/>
+      </map:match>
     
-  </map:pipeline>
-
-</map:pipelines>
+    </map:pipeline>
+  </map:pipelines>
 </map:sitemap>

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/skins/modern/styles/login-html.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/skins/modern/styles/login-html.xsl?rev=425058&r1=425057&r2=425058&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/skins/modern/styles/login-html.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sample/src/main/resources/COB-INF/skins/modern/styles/login-html.xsl
Mon Jul 24 07:12:59 2006
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!--+ $Id$ 
+<!--+ @version $Id$ 
     |
     | Description: Login page to HTML
     |
@@ -23,75 +23,57 @@
 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<xsl:param name="resource"/>
+  <xsl:param name="resource"/>
 
-<xsl:template match="content">
-<table id="personal_area"><tbody>
-  <tr>
-	<td>
-	  <br/>
-        <xsl:apply-templates/>
-      <br/>
-    </td>
-  </tr>
-  <tr>
-      <td>
-      <br/>
-      <p>
-         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/>
-       </p>
-     </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>
+  <xsl:template match="content">
+    <table id="personal_area"><tbody>
+      <tr><td><br/><xsl:apply-templates/><br/></td></tr>
+      <tr>
+        <td>
+          <br/>
+          <p>
+            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/>
+          </p>
+        </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><tbody><xsl:apply-templates select="field"/></tbody></table>
+      <input type="submit" value="Login"></input>
 	</form>
-</xsl:template>
+  </xsl:template>
+
+  <xsl:template match="field">
+    <tr>
+      <td align="left"><p><xsl:value-of select="@description"/>:</p></td>
+      <td align="left"><input name="{@name}" type="{@type}" size="{@length}"/></td>
+    </tr>
+  </xsl:template>
 
-<xsl:template match="field">
-	<tr>
-		<td align="left">
-			<p><xsl:value-of select="@description"/>:</p>
-		</td>
-		<td align="left">
-			<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>
+  <!-- Copy all and apply templates -->
+  <xsl:template match="@*|node()">
+    <xsl:copy><xsl:apply-templates select="@*|node()" /></xsl:copy>
+  </xsl:template>
 
 </xsl:stylesheet>



Mime
View raw message