cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/samples/styles authenticate.xsl
Date Tue, 27 May 2003 11:10:21 GMT
cziegeler    2003/05/27 04:10:20

  Modified:    src/blocks/portal/samples/skins/common/styles header.xsl
                        tab.xsl window.xsl login-html.xsl
               src/blocks/portal/samples sitemap.xmap
  Added:       src/blocks/portal/samples/styles authenticate.xsl
  Log:
  Adding authentication stylesheet
  
  Revision  Changes    Path
  1.2       +5 -5      cocoon-2.1/src/blocks/portal/samples/skins/common/styles/header.xsl
  
  Index: header.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/skins/common/styles/header.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- header.xsl	27 May 2003 09:40:34 -0000	1.1
  +++ header.xsl	27 May 2003 11:10:20 -0000	1.2
  @@ -11,17 +11,17 @@
   	<tbody> 
   		<tr> 
   		<td colspan="2" noWrap="" height="1%" bgcolor="#294563">
  -			<img height="5" src="sunspotdemoimg-space.gif" width="1"/>
  +			<img height="5" src="space.gif" width="1"/>
   		</td>
   		</tr>
   		<tr> 
   		<td bgcolor="#294563" height="98%" align="center" valign="middle" width="100%">
  -			<img src="sunspotdemoimg-portal-logo.gif" width="250" height="90" />
  +			<img src="portal-logo.gif" width="250" height="90" />
   		</td>
   		</tr>
   		<tr> 
   		<td align="center" height="1%" noWrap="" bgcolor="#294563" width="1%"> 
  -			<img src="sunspotdemoimg-space.gif" width="300" height="10"/>
  +			<img src="space.gif" width="300" height="10"/>
   		</td>
   		</tr>
   	</tbody>
  @@ -38,10 +38,10 @@
   	<table border="0" cellPadding="0" cellSpacing="0" width="100%">
   	<tbody> 
   	<tr> 
  -	<td colspan="2" noWrap="" height="10" bgcolor="#CFDCED"> <img height="1" src="sunspotdemoimg-space.gif"
width="1"/></td>
  +	<td colspan="2" noWrap="" height="10" bgcolor="#CFDCED"> <img height="1" src="space.gif"
width="1"/></td>
   	</tr>
   	<tr> 
  -	<td colspan="2" noWrap="" height="30" bgcolor="#294563"> <img height="1" src="sunspotdemoimg-space.gif"
width="1"/></td>
  +	<td colspan="2" noWrap="" height="30" bgcolor="#294563"> <img height="1" src="space.gif"
width="1"/></td>
   	</tr>
   	</tbody>
   	</table>
  
  
  
  1.2       +10 -10    cocoon-2.1/src/blocks/portal/samples/skins/common/styles/tab.xsl
  
  Index: tab.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/skins/common/styles/tab.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tab.xsl	27 May 2003 09:40:34 -0000	1.1
  +++ tab.xsl	27 May 2003 11:10:20 -0000	1.2
  @@ -17,10 +17,10 @@
   			<td width="5" Valign="bottom" bgcolor="#294563">
   				<table summary="non selected tab" style="height: 1.8em" border="0" cellpadding="0"
cellspacing="0">
   					<tr>
  -						<td height="99%"><img height="5" src="sunspotdemoimg-space.gif" width="5"/></td>
  +						<td height="99%"><img height="5" src="space.gif" width="5"/></td>
   					</tr>
   					<tr>
  -						<td height="10" bgcolor="#4C6C8F"><img height="10" src="sunspotdemoimg-space.gif"
width="5"/></td>
  +						<td height="10" bgcolor="#4C6C8F"><img height="10" src="space.gif" width="5"/></td>
   					</tr>
   				</table>
   			</td>
  @@ -29,7 +29,7 @@
   				<table summary="selected tab" style="height: 2.0em" border="0" cellpadding="0" cellspacing="0">
   					<tr>
   						<td valign="top" width="5" bgcolor="#FFFFFF">
  -							<img height="5" width="5" alt="" src="sunspotdemoimg-tabSel-left.gif"/>
  +							<img height="5" width="5" alt="" src="tabSel-left.gif"/>
   						</td>
   						<td valign="middle" bgcolor="#FFFFFF">
   							<font color="#ffffff" size="2" face="Arial, Helvetica, Sans-serif"><b>
  @@ -37,7 +37,7 @@
   							</font>
   						</td>
   						<td valign="top" width="5" bgcolor="#FFFFFF">
  -							<img height="5" width="5" alt="" src="sunspotdemoimg-tabSel-right.gif"/>
  +							<img height="5" width="5" alt="" src="tabSel-right.gif"/>
   						</td>
   					</tr>
   					<tr>
  @@ -54,10 +54,10 @@
   			<td width="5" Valign="bottom" bgcolor="#294563">
   				<table summary="non selected tab" style="height: 1.8em" border="0" cellpadding="0"
cellspacing="0">
   					<tr>
  -						<td height="99%"><img height="5" src="sunspotdemoimg-space.gif" width="5"/></td>
  +						<td height="99%"><img height="5" src="space.gif" width="5"/></td>
   					</tr>
   					<tr>
  -						<td height="10" bgcolor="#4C6C8F"><img height="10" src="sunspotdemoimg-space.gif"
width="5"/></td>
  +						<td height="10" bgcolor="#4C6C8F"><img height="10" src="space.gif" width="5"/></td>
   					</tr>
   				</table>
   			</td>
  @@ -66,7 +66,7 @@
   				<table summary="non selected tab" style="height: 1.8em" border="0" cellpadding="0"
cellspacing="0">
   					<tr>
   						<td valign="top" width="5" bgcolor="#B2C4E0">
  -							<img height="5" width="5" alt="" src="sunspotdemoimg-tab-left.gif"/>
  +							<img height="5" width="5" alt="" src="tab-left.gif"/>
   						</td>
   						<td valign="middle" bgcolor="#B2C4E0" >
   							<div class="tab">
  @@ -76,7 +76,7 @@
   							</div>
   						</td>
   						<td valign="top" width="5" bgcolor="#B2C4E0">
  -							<img height="5" width="5" alt="" src="sunspotdemoimg-tab-right.gif"/>
  +							<img height="5" width="5" alt="" src="tab-right.gif"/>
   						</td>
   					</tr>
   					<tr>
  @@ -93,12 +93,12 @@
   		<table style="height: 2.0em" border="0" cellpadding="0" cellspacing="0" width="100%">
   			<tr>
   				<td height="99%" bgcolor="#294563" width="100%">
  -					<img height="5" src="sunspotdemoimg-space.gif" width="1"/>
  +					<img height="5" src="space.gif" width="1"/>
   				</td>
   			</tr>
   			<tr>
   				<td height="1" bgcolor="#4C6C8F" width="100%">
  -					<img height="10" src="sunspotdemoimg-space.gif" width="1"/>
  +					<img height="10" src="space.gif" width="1"/>
   				</td>
   			</tr>
   		</table>
  
  
  
  1.2       +12 -12    cocoon-2.1/src/blocks/portal/samples/skins/common/styles/window.xsl
  
  Index: window.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/skins/common/styles/window.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- window.xsl	27 May 2003 09:40:34 -0000	1.1
  +++ window.xsl	27 May 2003 11:10:20 -0000	1.2
  @@ -17,7 +17,7 @@
   
   <table cellSpacing="0" cellpadding="0" width="100%">
   	<tr vAlign="top">
  -		<td width="5" style="background-color:#294563;" valign="top"><img src="sunspotdemoimg-window-top-left.gif"
border="0" width="5" height="5" alt="top-left"/></td>
  +		<td width="5" style="background-color:#294563;" valign="top"><img src="window-top-left.gif"
border="0" width="5" height="5" alt="top-left"/></td>
   		<td bgColor="{$bgColor}" valign="middle">
   			<font>
   				<xsl:attribute name="color">#ffffff</xsl:attribute>
  @@ -36,45 +36,45 @@
   		<td align="right" bgColor="{$bgColor}">
   			<xsl:if test="fullscreen-uri">
   				<a href="{fullscreen-uri}">
  -	  			    <img src="sunspotdemoimg-customize.gif" border="0" alt="Full Screen"/>
  +	  			    <img src="customize.gif" border="0" alt="Full Screen"/>
   	  			</a>
   			</xsl:if>
   			<xsl:if test="maxpage-uri">
   				<a href="{maxpage-uri}">
  -	  			    <img src="sunspotdemoimg-show.gif" border="0" alt="Max Page"/>
  +	  			    <img src="show.gif" border="0" alt="Max Page"/>
   	  			</a>
   			</xsl:if>
   			<xsl:if test="maximize-uri">
   				<a href="{maximize-uri}">
  -	  			    <img src="sunspotdemoimg-maximize.gif" border="0" alt="Maximize"/>
  +	  			    <img src="maximize.gif" border="0" alt="Maximize"/>
   	  			</a>
   			</xsl:if>
   			<xsl:if test="minimize-uri">
   				<a href="{minimize-uri}">
  -	  			    <img src="sunspotdemoimg-minimize.gif" border="0" alt="Minimize"/>
  +	  			    <img src="minimize.gif" border="0" alt="Minimize"/>
   	  			</a>
   			</xsl:if>
   			<xsl:if test="remove-uri">
   				<a href="{remove-uri}">
  -	  			    <img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  +	  			    <img src="delete.gif" border="0" alt="Delete"/>
   	  			</a>
   			</xsl:if>
   		</td>
  -		<td width="5" style="background-color:#294563;" valign="top"><img src="sunspotdemoimg-window-top-right.gif"
border="0" width="5" height="5" alt="top-right"/></td>
  +		<td width="5" style="background-color:#294563;" valign="top"><img src="window-top-right.gif"
border="0" width="5" height="5" alt="top-right"/></td>
   	</tr>
   	<xsl:if test="status!=0">
   		<tr>
  -			<td width="5" style="background-image:url(sunspotdemoimg-window-border-left.gif);"><img
src="sunspotdemoimg-space.gif" border="0" width="5" height="5" alt="space"/></td>
  +			<td width="5" style="background-image:url(window-border-left.gif);"><img src="space.gif"
border="0" width="5" height="5" alt="space"/></td>
   			<td colSpan="2">
                   <xsl:apply-templates select="content"/>
   			</td>
  -			<td width="5" style="background-image:url(sunspotdemoimg-window-border-right.gif);"><img
src="sunspotdemoimg-space.gif" border="0" width="5" height="5" alt="space"/></td>
  +			<td width="5" style="background-image:url(window-border-right.gif);"><img src="space.gif"
border="0" width="5" height="5" alt="space"/></td>
   		</tr>
   	</xsl:if>
   	<tr>
  -		<td width="5"><img src="sunspotdemoimg-window-bottom-left.gif" border="0" width="5"
height="5" alt="top-left"/></td>
  -		<td colspan="2" style="background-image:url(sunspotdemoimg-window-border-bottom.gif);"></td>
  -		<td width="5"><img src="sunspotdemoimg-window-bottom-right.gif" border="0" width="5"
height="5" alt="top-left"/></td>
  +		<td width="5"><img src="window-bottom-left.gif" border="0" width="5" height="5"
alt="top-left"/></td>
  +		<td colspan="2" style="background-image:url(window-border-bottom.gif);"></td>
  +		<td width="5"><img src="window-bottom-right.gif" border="0" width="5" height="5"
alt="top-left"/></td>
   	</tr>
   </table>
   </xsl:template>
  
  
  
  1.2       +2 -2      cocoon-2.1/src/blocks/portal/samples/skins/common/styles/login-html.xsl
  
  Index: login-html.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/skins/common/styles/login-html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- login-html.xsl	27 May 2003 09:40:34 -0000	1.1
  +++ login-html.xsl	27 May 2003 11:10:20 -0000	1.2
  @@ -19,7 +19,7 @@
     </tr>
     <tr>
       <td bgColor="#ffffff" width="15">
  -	  <img height="1" src="sunspotdemoimg-space.gif" width="15"/>
  +	  <img height="1" src="space.gif" width="15"/>
       </td>
     </tr>
     <tr>
  
  
  
  1.6       +15 -15    cocoon-2.1/src/blocks/portal/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/sitemap.xmap,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- sitemap.xmap	27 May 2003 09:40:35 -0000	1.5
  +++ sitemap.xmap	27 May 2003 11:10:20 -0000	1.6
  @@ -68,6 +68,19 @@
     
     <map:pipeline>
   
  +    <!-- images -->
  +	<map:match pattern="*.gif">
  +		<map:read mime-type="image/gif" src="{global:skin}images/{1}.gif"/>
  +	</map:match>
  +	<map:match pattern="*.jpg">
  +    	<map:read mime-type="image/jpg" src="{global:skin}images/{1}.jpg"/>
  +   	</map:match>
  +    
  +	<!-- Cascading Stylesheets -->
  +	<map:match pattern="css-*.css">
  +    	<map:read mime-type="text/css" src="{global:skin}css/{1}.css"/>
  +   	</map:match>
  +
       <map:match pattern="">
          <map:redirect-to uri="portal"/>
       </map:match>
  @@ -98,20 +111,7 @@
           </map:act>
           <map:redirect-to uri="login"/>
       </map:match>
  -    
  -    <!-- images -->
  -	<map:match pattern="sunspotdemoimg-*.gif">
  -		<map:read mime-type="image/gif" src="{global:skin}images/{1}.gif"/>
  -	</map:match>
  -	<map:match pattern="sunspotdemoimg-*.jpg">
  -    	<map:read mime-type="image/jpg" src="{global:skin}images/{1}.jpg"/>
  -   	</map:match>
  -    
  -	<!-- Cascading Stylesheets -->
  -	<map:match pattern="sunspotdemocss-*.css">
  -    	<map:read mime-type="text/css" src="{global:skin}css/{1}.css"/>
  -   	</map:match>
  -    
  +        
       <!-- authentication stuff -->
   
       <map:match pattern="login">
  @@ -173,7 +173,7 @@
     <map:pipeline internal-only="true">
       <map:match pattern="sunrise-authuser">
         <map:generate src="resources/sunrise-user.xml"/>
  -      <map:transform src="styles/sunrise-user.xsl">
  +      <map:transform src="styles/authenticate.xsl">
           <map:parameter name="use-request-parameters" value="true"/>
         </map:transform>
         <map:serialize type="xml"/>
  
  
  
  1.1                  cocoon-2.1/src/blocks/portal/samples/styles/authenticate.xsl
  
  Index: authenticate.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: authenticate.xsl,v 1.1 2003/05/27 11:10:20 cziegeler Exp $ 
  
  -->
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:param name="password"/>
  <xsl:param name="name"/>
  
  <xsl:template match="authentication">
  	<authentication>
  		<xsl:apply-templates select="users"/>
  	</authentication>
  </xsl:template>
  
  <xsl:template match="users">
  	<xsl:apply-templates select="user"/>
  </xsl:template>
  
  <xsl:template match="user">
  	<xsl:if test="normalize-space(name) = $name and normalize-space(password) = $password">
  		<ID><xsl:value-of select="name"/></ID>
  		<role><xsl:value-of select="role"/></role>
  		<data>
  			<name><xsl:value-of select="name"/></name>
  			<role><xsl:value-of select="role"/></role>
  			<ID><xsl:value-of select="name"/></ID>
  			<user><xsl:value-of select="name"/></user>
  			<title><xsl:value-of select="title"/></title>
  			<firstname><xsl:value-of select="firstname"/></firstname>
  			<lastname><xsl:value-of select="lastname"/></lastname>
  			<company><xsl:value-of select="company"/></company>
  			<street><xsl:value-of select="street"/></street>
  			<zipcode><xsl:value-of select="zipcode"/></zipcode>
  			<city><xsl:value-of select="city"/></city>
  			<country><xsl:value-of select="country"/></country>
  			<phone><xsl:value-of select="phone"/></phone>
  			<fax><xsl:value-of select="fax"/></fax>
  			<email><xsl:value-of select="email"/></email>
  			<bankid><xsl:value-of select="bankid"/></bankid>
  			<bankname><xsl:value-of select="bankname"/></bankname>
  			<accountid><xsl:value-of select="accountid"/></accountid>
  		</data>
  	</xsl:if>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  

Mime
View raw message