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 2002/06/03 13:45:56 UTC

cvs commit: xml-cocoon2/src/webapp/sunspotdemo/styles TO-html.xsl changeuser.xsl load.xsl login-html.xsl portal.xsl portalHTML-Netscape.xsl portalHTML.xsl portalconfHTML.xsl sunLet_MoreoverDotCom.xsl sunLet_sundnNews.xsl sunletconf.xsl sunrise-user.xsl sunriseconfHTML.xsl sunriseeditHTML.xsl

cziegeler    2002/06/03 04:45:56

  Modified:    src/java/org/apache/cocoon/components/source/impl
                        SitemapSource.java
               src/java/org/apache/cocoon/components/treeprocessor
                        TreeProcessor.java
               src/java/org/apache/cocoon/environment/wrapper
                        EnvironmentWrapper.java
               src/webapp/docs/samples samples.xml
               src/webapp/samples samples.xml
  Added:       src/webapp/samples/portal sitemap.xmap
               src/webapp/samples/portal/images bg_menue1.gif bg_menue2.gif
                        cover_cocoon.gif customize.gif delete.gif down.gif
                        green.gif hide.gif kast.gif kast_m.gif kast_o.gif
                        kast_u.gif kast_url_u.gif left.gif line_bg.gif
                        line_end.gif line_grey.gif line_q.gif
                        line_white.gif logo.jpg maximize.gif minimize.gif
                        right.gif show.gif space.gif up.gif
               src/webapp/samples/portal/profiles admintypes.xml
                        copletprofile.xml globalprofile.xml
                        layoutprofile.xml roleprofile-admin.xml
                        roleprofile-guest.xml roleprofile-user.xml
                        types.xml userprofile-cocoon.xml
                        userprofile-guest.xml
               src/webapp/samples/portal/resources roleprofile.xml
                        saveglobalprofile.xml saveroleprofile.xml
                        saveuserprofile.xml saveuserstatus.xml
                        sunrise-changeuser.xml sunrise-delrole.xml
                        sunrise-deluser.xml sunrise-loaduser.xml
                        sunrise-newrole.xml sunrise-newuser.xml
                        sunrise-roles.xml sunrise-user.xml userprofile.xml
                        userstatus.xml
               src/webapp/samples/portal/resources/auth bottom.xml
                        header.xml loggedin.xml loggedincontent.xml
                        logout.xml portal.xml sunlet-administration.xml
                        sunlet-customnews.xml sunlet-feedback.xml
                        sunlet-news.xml sunlet-personalize.xml
                        sunlet-personalizeguest.xml
                        sunletconfig-customnews.xml
               src/webapp/samples/portal/resources/free auth.xml bottom.xml
                        content.xml header.xml login-error.xml login.xml
                        portal.xml welcome.xml
               src/webapp/samples/portal/styles TO-html.xsl changeuser.xsl
                        load.xsl login-html.xsl portal.xsl
                        portalHTML-Netscape.xsl portalHTML.xsl
                        portalconfHTML.xsl sunLet_MoreoverDotCom.xsl
                        sunLet_sundnNews.xsl sunletconf.xsl
                        sunrise-user.xsl sunriseconfHTML.xsl
                        sunriseeditHTML.xsl
  Removed:     src/webapp/sunspotdemo portaldemo-act.xpipe
                        portaldemo-int.xpipe portaldemo.xpipe
               src/webapp/sunspotdemo/images bg_menue1.gif bg_menue2.gif
                        cover_cocoon.gif customize.gif delete.gif down.gif
                        green.gif hide.gif kast.gif kast_m.gif kast_o.gif
                        kast_u.gif kast_url_u.gif left.gif line_bg.gif
                        line_end.gif line_grey.gif line_q.gif
                        line_white.gif logo.jpg maximize.gif minimize.gif
                        right.gif show.gif space.gif up.gif
               src/webapp/sunspotdemo/profiles admintypes.xml
                        globalprofile.xml layoutprofile.xml
                        roleprofile-admin.xml roleprofile-guest.xml
                        roleprofile-user.xml sunletprofile.xml types.xml
                        userprofile-cocoon.xml userprofile-guest.xml
               src/webapp/sunspotdemo/resources roleprofile.xml
                        saveglobalprofile.xml saveroleprofile.xml
                        saveuserprofile.xml saveuserstatus.xml
                        sunrise-changeuser.xml sunrise-delrole.xml
                        sunrise-deluser.xml sunrise-loaduser.xml
                        sunrise-newrole.xml sunrise-newuser.xml
                        sunrise-roles.xml sunrise-user.xml userprofile.xml
                        userstatus.xml
               src/webapp/sunspotdemo/resources/auth bottom.xml header.xml
                        loggedin.xml loggedincontent.xml logout.xml
                        portal.xml sunlet-administration.xml
                        sunlet-customnews.xml sunlet-feedback.xml
                        sunlet-news.xml sunlet-personalize.xml
                        sunlet-personalizeguest.xml
                        sunletconfig-customnews.xml
               src/webapp/sunspotdemo/resources/free auth.xml bottom.xml
                        content.xml header.xml login-error.xml login.xml
                        portal.xml welcome.xml
               src/webapp/sunspotdemo/styles TO-html.xsl changeuser.xsl
                        load.xsl login-html.xsl portal.xsl
                        portalHTML-Netscape.xsl portalHTML.xsl
                        portalconfHTML.xsl sunLet_MoreoverDotCom.xsl
                        sunLet_sundnNews.xsl sunletconf.xsl
                        sunrise-user.xsl sunriseconfHTML.xsl
                        sunriseeditHTML.xsl
  Log:
  Finished rewrite of authentication framework (subsitemaps can contain own handler now) and moved portal to samples directory
  
  Revision  Changes    Path
  1.11      +2 -2      xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
  
  Index: SitemapSource.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SitemapSource.java	28 May 2002 14:03:18 -0000	1.10
  +++ SitemapSource.java	3 Jun 2002 11:45:52 -0000	1.11
  @@ -92,7 +92,7 @@
    * Description of a source which is defined by a pipeline.
    *
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Id: SitemapSource.java,v 1.10 2002/05/28 14:03:18 cziegeler Exp $
  + * @version CVS $Id: SitemapSource.java,v 1.11 2002/06/03 11:45:52 cziegeler Exp $
    */
   
   public final class SitemapSource
  @@ -284,8 +284,8 @@
           try {
   
               this.environment.setURI(this.prefix, this.uri);
  -            this.environment.changeToLastContext();
               this.processingPipeline = this.processor.processInternal(this.environment);
  +            this.environment.changeToLastContext();
               String redirectURL = this.environment.getRedirectURL();
               if (redirectURL == null) {
                   SourceValidity[] eventPipelineValidities = this.processingPipeline.getValiditiesForEventPipeline();
  
  
  
  1.14      +3 -1      xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/TreeProcessor.java
  
  Index: TreeProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/TreeProcessor.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- TreeProcessor.java	3 Jun 2002 10:02:00 -0000	1.13
  +++ TreeProcessor.java	3 Jun 2002 11:45:52 -0000	1.14
  @@ -94,7 +94,7 @@
    * Interpreted tree-traversal implementation of a pipeline assembly language.
    *
    * @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
  - * @version CVS $Id: TreeProcessor.java,v 1.13 2002/06/03 10:02:00 cziegeler Exp $
  + * @version CVS $Id: TreeProcessor.java,v 1.14 2002/06/03 11:45:52 cziegeler Exp $
    */
   
   public class TreeProcessor
  @@ -341,6 +341,7 @@
   
           context.setLogger(getLogger());
   
  +        CocoonComponentManager.enterEnvironment(environment, environment.getObjectModel(), this);
           try {
               if ( process(environment, context) ) {
                   return context.getProcessingPipeline();
  @@ -348,6 +349,7 @@
                   return null;
               }
           } finally {
  +            CocoonComponentManager.leaveEnvironment();
               context.dispose();
           }
       }
  
  
  
  1.16      +2 -1      xml-cocoon2/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java
  
  Index: EnvironmentWrapper.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- EnvironmentWrapper.java	26 Apr 2002 10:42:17 -0000	1.15
  +++ EnvironmentWrapper.java	3 Jun 2002 11:45:52 -0000	1.16
  @@ -73,7 +73,7 @@
    * contains a <code>RequestWrapper</code> object.
    *
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version $Id: EnvironmentWrapper.java,v 1.15 2002/04/26 10:42:17 cziegeler Exp $
  + * @version $Id: EnvironmentWrapper.java,v 1.16 2002/06/03 11:45:52 cziegeler Exp $
    */
   public class EnvironmentWrapper extends AbstractEnvironment implements Environment {
   
  @@ -318,4 +318,5 @@
       throws SAXException, IOException, ProcessingException {
           this.environment.toSAX( source, handler );
       }
  +
   }
  
  
  
  1.13      +2 -2      xml-cocoon2/src/webapp/docs/samples/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/samples.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- samples.xml	8 May 2002 08:26:50 -0000	1.12
  +++ samples.xml	3 Jun 2002 11:45:52 -0000	1.13
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   
  -<!-- CVS: $Id: samples.xml,v 1.12 2002/05/08 08:26:50 cziegeler Exp $ -->
  +<!-- CVS: $Id: samples.xml,v 1.13 2002/06/03 11:45:52 cziegeler Exp $ -->
   
   <samples xmlns:xlink="http://www.w3.org/1999/xlink">
   
  @@ -57,7 +57,7 @@
       More ways of implementing dynamic content.
      </sample>
   
  -   <sample name="Portal &amp; Authentication" href="sunspotdemoportal">
  +   <sample name="Portal &amp; Authentication" href="samples/portal/sunspotdemoportal">
       This is a demo of the portal framework integrated into Cocoon.
      </sample>
   
  
  
  
  1.9       +2 -2      xml-cocoon2/src/webapp/samples/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/samples.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- samples.xml	22 May 2002 14:50:26 -0000	1.8
  +++ samples.xml	3 Jun 2002 11:45:52 -0000	1.9
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   
  -<!-- CVS: $Id: samples.xml,v 1.8 2002/05/22 14:50:26 nicolaken Exp $ -->
  +<!-- CVS: $Id: samples.xml,v 1.9 2002/06/03 11:45:52 cziegeler Exp $ -->
   
   <samples xmlns:xlink="http://www.w3.org/1999/xlink">
   
  @@ -131,7 +131,7 @@
       More ways of implementing dynamic content.
      </sample>
   
  -   <sample name="Portal &amp; Authentication" href="sunspotdemoportal">
  +   <sample name="Portal &amp; Authentication" href="portal/sunspotdemoportal">
       This is a demo of the portal framework integrated into Cocoon.
      </sample>
   
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  <?xml version="1.0"?>
  
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  <!-- =========================== Components ================================ -->
  
   <map:components>
  
    <map:generators default="file"/>
    <map:transformers default="xslt"/>
    <map:serializers default="html"/>
    <map:matchers default="wildcard"/>
    <map:selectors default="browser"/>
    <map:readers default="resource"/>
   </map:components>
  
  
  <!-- =========================== Pipelines ================================= -->
  
   <map:pipelines>
    <map:component-configurations>
    <org.apache.cocoon.webapps.authentication.components.AuthenticationManager>
      <handlers>
        <handler name="portalhandler">
  		<redirect-to uri="cocoon://samples/portal/sunspotdemoportal"/>
  		<authentication uri="cocoon:raw://samples/portal/sunrise-authuser"/>
  		<load-users uri="cocoon:raw://samples/portal/sunrise-loaduser"/>
  		<load-roles uri="cocoon:raw://samples/portal/sunrise-roles"/>
  		<new-user uri="cocoon:raw://samples/portal/sunrise-newuser"/>
  		<new-role uri="cocoon:raw://samples/portal/sunrise-newrole"/>
  		<change-user uri="cocoon:raw://samples/portal/sunrise-changeuser"/>
  		<delete-role uri="cocoon:raw://samples/portal/sunrise-delrole"/>
  		<delete-user uri="cocoon:raw://samples/portal/sunrise-deluser"/>
  		<applications>
  			<application loadondemand="true" name="sunspotdemo">
  				<configuration name="portal">
  					<auth-redirect>sunspotdemo-portal</auth-redirect>
  					<portal-uri>sunspotdemo-portal</portal-uri>
  					<profile-cache>true</profile-cache>
  					<process-coplets-parallel>false</process-coplets-parallel>
  					<default-coplet-timeout>10000</default-coplet-timeout> <!-- milliseconds -->
  					<profile>
  						<layout-base uri="profiles/layoutprofile.xml"/>
  						<coplet-base uri="profiles/copletprofile.xml"/>
  						<coplet-base-save uri="profiles/copletprofile.xml"/>
  						<type-base uri="profiles/types.xml"/>
  						<admin-type-base uri="profiles/admintypes.xml"/>
  						<global-delta-load uri="profiles/globalprofile.xml"/>
  						<global-delta-save uri="cocoon:raw://samples/portal/sunspotdemoresource-saveglobalprofile"/>
  						<role-delta-load uri="cocoon:raw://samples/portal/sunspotdemoresource-roleprofile"/>
  						<role-delta-save uri="cocoon:raw://samples/portal/sunspotdemoresource-saveroleprofile"/>
  						<user-delta-load uri="cocoon:raw://samples/portal/sunspotdemoresource-userprofile"/>
  						<user-delta-save uri="cocoon:raw://samples/portal/sunspotdemoresource-saveuserprofile"/>
  						<user-status-load uri="cocoon:raw://samples/portal/sunspotdemoresource-userstatus"/>
  						<user-status-save uri="cocoon:raw://samples/portal/sunspotdemoresource-saveuserstatus"/>
  					</profile>
  				</configuration>
  			</application>
  		</applications>
        </handler>
       </handlers>
     </org.apache.cocoon.webapps.authentication.components.AuthenticationManager>
    </map:component-configurations>
  
    <map:pipeline>
  
       <!-- This is the Cocoon Demo Portal Pipeline -->
  	<map:match pattern="sunspotdemoportal">
  		<map:act type="auth-loggedIn">
  			<map:parameter name="handler" value="portalhandler"/> 
  			<map:redirect-to uri="sunspotdemo-portal"/>
  		</map:act>
  		<map:generate src="resources/free/portal.xml"/>
  		<map:transform src="styles/TO-html.xsl"/>
  		<map:transform type="encodeURL"/>
  		<map:serialize/>
  	</map:match>
  
  	<!-- images -->
  	 <map:match pattern="sunspotdemoimg-*.gif">
  		<map:read mime-type="image/gif" src="images/{1}.gif"/>
  	</map:match>
  	<map:match pattern="sunspotdemoimg-*.jpg">
      		<map:read mime-type="image/jpg" src="images/{1}.jpg"/>
     	</map:match>
  
  	<!-- free sites -->
  	<map:match pattern="sunspotdemofree-login">
  		<map:act type="auth-loggedIn">
  			<map:parameter name="handler" value="portalhandler"/> 
  			<map:redirect-to uri="sunspotdemo-portal"/>
  		</map:act>
  		<map:generate src="resources/free/login.xml"/>
  		<map:transform src="styles/login-html.xsl"/>
  		<map:transform src="styles/TO-html.xsl"/>
  		<map:transform type="encodeURL"/>
  		<map:serialize/>
  	</map:match>
  	<map:match pattern="sunspotdemofree-auth">
  		<map:act type="auth-loggedIn">
  			<map:parameter name="handler" value="portalhandler"/> 
  			<map:redirect-to uri="sunspotdemo-loggedin"/>
  		</map:act>
    	     	<map:act type="auth-login">
  	      	<map:parameter name="handler" value="portalhandler"/>
  			<map:parameter name="parameter_name" value="request:name"/>
  			<map:parameter name="parameter_password" value="request:password"/>
    			<map:redirect-to uri="sunspotdemo-portal"/>
  	      </map:act>
  		<map:generate src="resources/free/auth.xml"/>
  		<map:transform src="styles/TO-html.xsl"/>
  		<map:transform type="encodeURL"/>
  		<map:serialize/>
  	</map:match>
  	<map:match pattern="sunspotdemofree-*">
  		<map:act type="auth-loggedIn">
  			<map:parameter name="handler" value="portalhandler"/> 
  			<map:redirect-to uri="sunspotdemo-portal"/>
  		</map:act>
  		<map:generate src="resources/free/{1}.xml"/>
  		<map:transform src="styles/TO-html.xsl"/>
  		<map:transform type="encodeURL"/>
  		<map:serialize/>
  	</map:match>
  
        <map:match pattern="sunspotdemo**">
  		<map:act type="auth-protect">
  			<map:parameter name="handler" value="portalhandler"/> 
  			<map:parameter name="application" value="sunspotdemo"/> 
  	
  			<map:match pattern="sunspotdemoresource-save*">
  				<map:generate src="resources/save{1}.xml"/>
  				<map:transform type="session"/>
  				<map:transform type="write-source"/>
  				<map:serialize type="xml"/>
  			</map:match>
  			<map:match pattern="sunspotdemoresource-*">
  				<map:generate src="resources/{1}.xml"/>
  				<map:transform type="session"/>
  				<map:transform type="write-source"/>
  				<map:transform src="styles/portal.xsl"/>
  				<map:serialize type="xml"/>
  			</map:match>
  
  		<!-- sunlets -->
  			<map:match pattern="sunspotdemosunlet-onlinesundn.xml"> 
  				<map:generate src="http://www.s-und-n.de/aktuelles/news.xml"/>
  				<map:transform src="styles/sunLet_sundnNews.xsl"/>
  				<map:serialize type="xml"/>
  			</map:match>
  
  			<map:match pattern="sunspotdemosunlet-online-*.xml"> 
  				<map:generate src="http://p.moreover.com/cgi-local/page?index_{1}+xml"/>
  				<map:transform src="styles/sunLet_MoreoverDotCom.xsl"/>
  				<map:serialize type="xml"/>
  			</map:match>
  			<map:match pattern="sunspotdemosunlet-customnews">
  				<map:generate src="resources/auth/sunlet-customnews.xml"/>
  				<map:transform type="session"/>
  				<map:transform src="styles/sunLet_MoreoverDotCom.xsl"/>
  				<map:serialize type="xml"/> 
  			</map:match>
  			<map:match pattern="sunspotdemosunletconf-*"> 
  				<map:generate src="resources/auth/sunletconfig-{1}.xml"/>
  				<map:transform type="session"/>
  				<map:transform src="styles/sunletconf.xsl"/>
  				<map:serialize type="xml"/>
  			</map:match>
  
  			<map:match pattern="sunspotdemosunlet-*.xml"> 
  				<map:generate src="resources/auth/sunlet-{1}.xml"/>
  				<map:serialize type="xml"/>
  			</map:match>
  					
  
  		<!-- auth sites -->
  
  			<map:match pattern="sunspotdemo-conf">
  				<map:generate type="portal-conf"/>
  				<map:transform src="styles/portalconfHTML.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match>
  			<map:match pattern="sunspotdemo-adminconf">
  				<!-- This pipeline can only be accessed if the current user is
                               allowed to configure the 'administration' coplet -->
  				<map:act type="portal-auth">
  					<map:parameter name="coplet" value="administration"/>
  				</map:act>
  				<map:generate src="admin" type="portal-conf"/>
  				<map:transform src="styles/portalconfHTML.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match> 
  			<map:match pattern="sunspotdemo-sunriseconf">
  				<!-- This pipeline can only be accessed if the current user is
                               allowed to configure the 'administration' coplet -->
  				<map:act type="portal-auth">
  					<map:parameter name="coplet" value="administration"/>
  				</map:act>
  				<map:generate type="auth-conf"/>
  				<map:transform src="styles/sunriseconfHTML.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match> 
  			<map:match pattern="sunspotdemo-sunriseedit">
  				<map:generate src="user" type="auth-conf"/>
  				<map:transform src="styles/sunriseeditHTML.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match> 
  			<map:match pattern="sunspotdemo-portlets">
  				<map:generate type="portal"/>
  				<map:select type="browser">
  					<map:when test="explorer">
  						<map:transform src="styles/portalHTML.xsl"/>
  					</map:when>
  					<map:when test="netscape">
  						<map:transform src="styles/portalHTML-Netscape.xsl"/>
  					</map:when>
  					<map:otherwise>
  						<map:transform src="styles/portalHTML.xsl"/>
  					</map:otherwise>
  				</map:select>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match>
  			<map:match pattern="sunspotdemo-logout">
  				<map:act type="auth-logout"/>
  				<map:generate src="resources/auth/logout.xml"/>
  				<map:transform src="styles/TO-html.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match>
  			<map:match pattern="sunspotdemo-*">
  				<map:generate src="resources/auth/{1}.xml"/>
  				<map:transform type="session"/>
  				<map:transform type="write-source"/>
  				<map:transform src="styles/TO-html.xsl"/>
  				<map:transform type="encodeURL"/>
  				<map:serialize/>
  			</map:match>
  		</map:act>
      </map:match>
  
    </map:pipeline>
  
    <map:pipeline internal-only="true">
      <!-- This is the Cocoon Demo Portal Pipeline              -->
  	<map:match pattern="sunrise-*">
  		<!-- authentication -->
  		<map:match pattern="sunrise-authuser">
  			<map:generate src="resources/sunrise-user.xml"/>
  			<map:transform src="styles/sunrise-user.xsl">
     				<map:parameter name="use-request-parameters" value="true"/>
                    </map:transform>
  			<map:serialize type="xml"/>
  		</map:match>
  
  		<map:match pattern="sunrise-changeuser">
  			<map:generate src="resources/sunrise-changeuser.xml"/>
  			<map:transform type="session"/>
  			<map:transform src="styles/changeuser.xsl"/>
  			<map:transform type="write-source"/>
  			<map:transform src="styles/portal.xsl"/>
  			<map:serialize type="xml"/>
  		</map:match>
  
  		<map:match pattern="sunrise*">
  			<map:generate src="resources/sunrise{1}.xml"/>
  			<map:transform type="session"/>
  			<map:transform type="write-source"/>
  			<map:transform src="styles/portal.xsl"/>
  			<map:serialize type="xml"/>
  		</map:match>
  	</map:match>
    </map:pipeline>
  
   </map:pipelines>
  
  </map:sitemap>
  
  <!-- end of file -->
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/bg_menue1.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/bg_menue2.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/cover_cocoon.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/customize.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/delete.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/down.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/green.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/hide.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/kast.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/kast_m.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/kast_o.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/kast_u.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/kast_url_u.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/left.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/line_bg.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/line_end.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/line_grey.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/line_q.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/line_white.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/logo.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/maximize.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/minimize.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/right.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/show.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/space.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/images/up.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/admintypes.xml
  
  Index: admintypes.xml
  ===================================================================
  <?xml version="1.0" standalone="yes"?>
  <!-- $Id: admintypes.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
   Description: The type profile
  
  -->
  
  <type-profile>
  
     	 <typedefs>
  		<!-- The following types are defined by the portal engine: (Names are casesensitiv!)
                    	      STRING, BOOLEAN, ENUMERATION, INTEGER, CARDINAL -->
  		<typedef name="backgroundcolor" type="ENUMERATION">
  			<value name="white">#ffffff</value>
  			<value name="light-grey">#cccccc</value>
  			<value name="dark-frey">#666666</value>
  			<value name="black">black</value>
  
  			<value name="green-blue">#aab9bf</value>
  			<value name="dark-green-blue">#46627A</value>
  
  			<value name="light-blue">#CDD5EA</value>
  			<value name="dark-blue">#272676</value>
  			
  			<value name="pink">#FFCCCC</value>
  			<value name="red">#E13024</value>
  			<value name="dark-red">#7F0007</value>
  
  			<value name="light-orange">#FFCC66</value>
  			<value name="orange">#FF9900</value>
  			<value name="dark-orange">#FF6600</value>
  	
  			<value name="light-yellow">#F7F7BD</value>
  			<value name="yellow">#FFCC00</value>
  
  			<value name="light-green">#ABBEAB</value>
  			<value name="green">#4A594A</value>
  
  		</typedef>
  		<typedef name="textcolor" type="ENUMERATION">
  			<value name="white">#ffffff</value>
  			<value name="light-grey">#cccccc</value>
  			<value name="dark-frey">#666666</value>
  			<value name="black">black</value>
  
  			<value name="green-blue">#aab9bf</value>
  			<value name="dark-green-blue">#46627A</value>
  
  			<value name="light-blue">#CDD5EA</value>
  			<value name="dark-blue">#272676</value>
  			
  			<value name="pink">#FFCCCC</value>
  			<value name="red">#E13024</value>
  			<value name="dark-red">#7F0007</value>
  
  			<value name="light-orange">#FFCC66</value>
  			<value name="orange">#FF9900</value>
  			<value name="dark-orange">#FF6600</value>
  	
  			<value name="light-yellow">#F7F7BD</value>
  			<value name="yellow">#FFCC00</value>
  
  			<value name="light-green">#ABBEAB</value>
  			<value name="green">#4A594A</value>
  		</typedef>
  		<typedef name="copletsize" type="ENUMERATION">
  			<value name="Maximized">max</value>
  			<value name="Minimized">min</value>
  		</typedef>
  		<typedef name="columnnumber" type="ENUMERATION">
  			<value name="1">1</value>
  			<value name="2">2</value>
  			<value name="3">3</value>
  			<value name="4">4</value>
  			<value name="5">5</value>
  		</typedef>
     	</typedefs>
  
  	<elements>
  		<layout-profile>
  		<portal><layouts>
  			<layout>
  			<background>
  				<color type="backgroundcolor" description="Backgroundcolor"/>
  			</background>
  			<font><color type="textcolor" description="Fontcolor"/>
  			</font>
  			</layout>
  			</layouts>
  			<header><exists type="BOOLEAN" description="Header"/></header>
  			<footer><exists type="BOOLEAN" description="Footer"/></footer>
  			<columns><number type="columnnumber" description="Amount"/></columns>
  		</portal>
  		</layout-profile>
  		<coplets-profile>
  			<coplets>
  				<coplet id="*">
  					<configuration>
  						<mandatory type="BOOLEAN" description="Required"/>
  						<sizable type="BOOLEAN" description="Resizable"/>
  						<active type="BOOLEAN" description="Active"/>
  					</configuration>
  					<title type="STRING" description="Title"/>
  				</coplet>
  			</coplets>
  		</coplets-profile>
  		<portal-profile>
  			<content>
  				<column position="*">
  					<width type="CARDINAL" description="Width"/>
  					<coplets>
  						<coplet id="*" position="*" number="*">
  							<status>
  								<visible type="BOOLEAN" description="Visibile"/>
  								<size type="copletsize" description="Size"/>
  							</status>
  						</coplet>
  					</coplets>
  				</column>
  			</content>
  		</portal-profile>
  	</elements>
  </type-profile>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/copletprofile.xml
  
  Index: copletprofile.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!-- $Id: copletprofile.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  -->
  <coplets-profile>
   	<coplets>  
  		<coplet id="sundnnews">
   			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-onlinesundn.xml"/>
       			<configuration>  
         				<mandatory>false</mandatory>
         				<sizable>true</sizable>
         				<active>true</active>
                                <timeout>5000</timeout>
      			</configuration>
      			<title>s&amp;n News</title>
      			<status>
  					<customize>false</customize>
          				<visible>true</visible>
          				<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="banknews">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-online-banking.xml"/>
       			<configuration>  
         			<mandatory>false</mandatory>
         			<sizable>true</sizable>
         			<active>true</active>  
                          <timeout>5000</timeout>
      			</configuration>
      			<title>Banking News</title>
      			<status>
         			<visible>true</visible>
          			<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="customnews">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-customnews"/>
      			<customization uri="cocoon:raw://samples/portal/sunspotdemosunletconf-customnews"/>
       			<configuration>  
  					<customizable>true</customizable>
  					<persistent>true</persistent>
         				<mandatory>false</mandatory>
         				<sizable>true</sizable>
         				<active>true</active>  
      			</configuration>
      			<title>My News</title>
      			<status>
          			<visible>true</visible>
          			<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="germany">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-online-germany.xml"/>
       			<configuration>  
         				<mandatory>false</mandatory>
         				<sizable>true</sizable>
         				<active>true</active>  
                                                  <timeout>5000</timeout>
      			</configuration>
      			<title>Germany News</title>
      			<status>
          				<visible>true</visible>
          				<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="feedback">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-feedback.xml"/>
       			<configuration>  
         				<mandatory>false</mandatory>
         				<sizable>true</sizable>
         				<active>true</active>  
      			</configuration>
      			<title>Feedback</title>
      			<status>
          				<visible>true</visible>
          				<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="administration">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-administration.xml"/>
       			<configuration>  
         				<mandatory>false</mandatory>
         				<sizable>true</sizable>
         				<active>false</active> <!-- this is only active for admins -->  
      			</configuration>
      			<title>Administration</title>
      			<status>
          				<visible>true</visible>
          				<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="personalize">
      			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-personalize.xml"/>
       			<configuration>  
         				<mandatory>true</mandatory>
         				<sizable>true</sizable>
         				<active>true</active>  
      			</configuration>
      			<title>Personalize</title>
      			<status>
          				<visible>true</visible>
          				<size>max</size>
  			</status>
  		</coplet>
  		<coplet id="personalizeguest">
     			<resource uri="cocoon:raw://samples/portal/sunspotdemosunlet-personalizeguest.xml"/>
  			<configuration>  
       				<mandatory>true</mandatory>
       				<sizable>true</sizable>
      				<active>false</active>  
  			</configuration>
  			<title>Personalize (Guest)</title>
     			<status>
       				<visible>true</visible>
       				<size>max</size>
  			</status>
  		</coplet>
  	</coplets>
  </coplets-profile>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/globalprofile.xml
  
  Index: globalprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: globalprofile.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  -->
  <global-delta>
  	<layout-delta>
  	 </layout-delta>
  
  	<coplets-delta>
  	</coplets-delta>
  
  	<portal-profile>
   
  	<content>
  		<header>
       			<coplet id="personalize" position="1" number="1">
  				<status>
  					<visible>true</visible>
   	    					<size>max</size>
  					</status>
  				</coplet>
  		</header>
  		<column position="1">
  			<width>28%</width>
  			<coplets>
       				<coplet id="administration" position="1" number="2">
    					<status>
          						<visible>true</visible>
      	    					<size>max</size>
  					</status>
  				</coplet>
  				<coplet id="sundnnews" position="2" number="8">
    					<status>
         					<visible>true</visible>
      	    					<size>max</size>
  					</status>
  				</coplet>
  			</coplets>
      		</column>
    
  		 <column position="2">
  			<width>50%</width>
  			<coplets>
  				<coplet id="customnews" position="1" number="7">
    					<status>
         					<visible>true</visible>
      	    					<size>max</size>
  					</status>
  				</coplet>
  				<coplet id="feedback" position="3" number="9">        
  					<status>
  					      <visible>true</visible>               
  						<size>max</size>      
  					</status>     
  				</coplet>
  			</coplets>
     		</column>
   		
  		 <column position="3">
  			<width>22%</width>
  			<coplets>
        				<coplet id="germany" position="2" number="9">
    					<status>
          					<visible>true</visible>
       	   					<size>max</size>
  					</status>
  				</coplet>
  
  			</coplets>
     		</column>
  	
   	</content>
  </portal-profile>
   
  <personal-profile>
  	<greeting>Welcome</greeting>
  	<messages>
  		<coplet_not_available>The coplet is currently not available.</coplet_not_available>
  	</messages>
  </personal-profile>
  
  </global-delta>
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/layoutprofile.xml
  
  Index: layoutprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: layoutprofile.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  
  	<layout-profile>
    		<portal>
  			<layouts>	
  			
  				<!-- there is always one layout part without an attribute media.
                                           	      This is the default layout -->
  	            		<layout>
          					<background>
  				          		<color>#ffffff</color>
          					</background>
          					<font>
            						<type>Arial, Helvetica, sans-serif</type>
            						<size>2</size>
            						<color>black</color>
  	        				</font>
           				</layout>
        			</layouts>
  			
  			  <!-- The following means that the portal has a header area -->
    			<header>
  				<exists>true</exists>
    			</header>
    			
  			<!-- The following means that the portal has 3 columns -->
  			<columns>
  				<number>3</number>
  			</columns>
  
    			<!-- The following means that the portal has a footer area -->
    			<footer>
  				<exists>false</exists>
    			</footer>
  		</portal>
  
  		<coplets>
  			<layouts>
          				<layout>
  					<title>
  		        				<background>
  						          <color>#46627A</color>
  						</background>
  						<font>
  	          						<type>Arial</type>
            							<size>2</size>
            							<color>#ffffff</color>
  						</font>
  					</title>
  					<content>
  						<font>
  	          						<type>Arial</type>
            							<size>2</size>
            							<color>#000000</color>
  						</font>
  	        					<background>
  						          <color>#ffffff</color>
  						</background>
  					</content>
  				</layout>
  			</layouts>
   		</coplets>
  
  	</layout-profile>
  
  
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/roleprofile-admin.xml
  
  Index: roleprofile-admin.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!-- $Id: roleprofile-admin.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  <role-delta>
  	<coplets-delta>
  		<coplets>
  			<coplet id="administration">
  				<configuration>
         					<active>true</active> <!-- this is only active for admins -->  
      				</configuration>
  			</coplet>
  
  		</coplets>
  	</coplets-delta>
  </role-delta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/roleprofile-guest.xml
  
  Index: roleprofile-guest.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: roleprofile-guest.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
   Description: The delta for the guest role
                Disable the coplet personalize
                Add a new coplet personalize-guest
  
  -->
  <role-delta>
  	<coplets-delta>
  		<coplets>
  			<coplet id="personalize">
  				<configuration>
         					<active>false</active> <!-- this is not active for guests -->  
      				</configuration>
  			</coplet>
  			<coplet id="personalizeguest">
       				<configuration>  
         				<active>true</active>  
      				</configuration>
  			</coplet>
  		</coplets>
  	</coplets-delta>
  
  <portal-profile>
   
  	<content>
  		<header>
       			<coplet id="personalizeguest" position="1" number="1">
  				<status>
  					<visible>true</visible>
     					<size>max</size>
  				</status>
  			</coplet>
  		</header>
  		<column position="1">
  			<width>28%</width>
  			<coplets>
  				<coplet id="sundnnews" position="2" number="8">
    					<status>
         					<visible>true</visible>
      	    					<size>max</size>
  					</status>
  				</coplet>
  			</coplets>
      		</column>
    
  		 <column position="2">
  			<width>50%</width>
  			<coplets>
  				<coplet id="customnews" position="1" number="7">
    					<status>
         					<visible>true</visible>
      	    					<size>max</size>
  					</status>
  				</coplet>
  				<coplet id="feedback" position="3" number="9">        
  					<status>
  					      <visible>true</visible>               
  						<size>max</size>      
  					</status>     
  				</coplet>
  			</coplets>
     		</column>
   		
  		 <column position="3">
  			<width>22%</width>
  			<coplets>
        				<coplet id="germany" position="2" number="9">
    					<status>
          					<visible>true</visible>
       	   					<size>max</size>
  					</status>
  				</coplet>
  
  			</coplets>
     		</column>
  	
   	</content>
  </portal-profile>
  
  </role-delta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/roleprofile-user.xml
  
  Index: roleprofile-user.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: roleprofile-user.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  <role-delta/>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/types.xml
  
  Index: types.xml
  ===================================================================
  <?xml version="1.0" standalone="yes"?>
  <!-- $Id: types.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
   Description: The type profile
  
  -->
  
  <type-profile>
  
     	 <typedefs>
  		<!-- The following types are defined by the portal engine: (Names are casesensitiv!)
                    	      STRING, BOOLEAN, ENUMERATION, INTEGER, CARDINAL -->
  		<typedef name="backgroundcolor" type="ENUMERATION">
  			<value name="white">#ffffff</value>
  			<value name="light-grey">#cccccc</value>
  			<value name="dark-frey">#666666</value>
  			<value name="black">black</value>
  
  			<value name="green-blue">#aab9bf</value>
  			<value name="dark-green-blue">#46627A</value>
  
  			<value name="light-blue">#CDD5EA</value>
  			<value name="dark-blue">#272676</value>
  			
  			<value name="pink">#FFCCCC</value>
  			<value name="red">#E13024</value>
  			<value name="dark-red">#7F0007</value>
  
  			<value name="light-orange">#FFCC66</value>
  			<value name="orange">#FF9900</value>
  			<value name="dark-orange">#FF6600</value>
  	
  			<value name="light-yellow">#F7F7BD</value>
  			<value name="yellow">#FFCC00</value>
  
  			<value name="light-green">#ABBEAB</value>
  			<value name="green">#4A594A</value>
  
  		</typedef>
  		<typedef name="textcolor" type="ENUMERATION">
  			<value name="white">#ffffff</value>
  			<value name="light-grey">#cccccc</value>
  			<value name="dark-frey">#666666</value>
  			<value name="black">black</value>
  
  			<value name="green-blue">#aab9bf</value>
  			<value name="dark-green-blue">#46627A</value>
  
  			<value name="light-blue">#CDD5EA</value>
  			<value name="dark-blue">#272676</value>
  			
  			<value name="pink">#FFCCCC</value>
  			<value name="red">#E13024</value>
  			<value name="dark-red">#7F0007</value>
  
  			<value name="light-orange">#FFCC66</value>
  			<value name="orange">#FF9900</value>
  			<value name="dark-orange">#FF6600</value>
  	
  			<value name="light-yellow">#F7F7BD</value>
  			<value name="yellow">#FFCC00</value>
  
  			<value name="light-green">#ABBEAB</value>
  			<value name="green">#4A594A</value>
  		</typedef>
  		<typedef name="copletsize" type="ENUMERATION">
  			<value name="Maximized">max</value>
  			<value name="Minimized">min</value>
  		</typedef>
  		<typedef name="columnnumber" type="ENUMERATION">
  			<value name="1">1</value>
  			<value name="2">2</value>
  			<value name="3">3</value>
  			<value name="4">4</value>
  			<value name="5">5</value>
  		</typedef>
     	</typedefs>
  
  	<elements>
  		<layout-profile>
  		<portal><layouts>
  			<layout>
  			<background>
  				<color type="backgroundcolor" description="Backgroundcolor"/>
  			</background>
  			<font><color type="textcolor" description="Fontcolor"/>
  			</font>
  			</layout>
  			</layouts>
  			<columns><number type="columnnumber" description="Amount"/></columns>
  		</portal>
  		</layout-profile>
  		<portal-profile>
  			<content>
  				<column position="*">
  					<width type="CARDINAL" description="Width"/>
  					<coplets>
  						<coplet id="*" position="*" number="*">
  							<status>
  								<visible type="BOOLEAN" description="Visibile"/>
  								<size type="copletsize" description="Size"/>
  							</status>
  						</coplet>
  					</coplets>
  				</column>
  			</content>
  		</portal-profile>
  	</elements>
  </type-profile>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/userprofile-cocoon.xml
  
  Index: userprofile-cocoon.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: userprofile-cocoon.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  <user-delta>
  	<portal-profile>    
  		<content>   
  			<header>           
  				<coplet id="personalize" position="1" number="1">        
  					<status>               
  						<visible>true</visible>               
  						<size>max</size>      
  					</status>     
  				</coplet>   
  			</header>   
  			<column position="1">    
  				<width>28%</width>    
  					<coplets>           
  						<coplet id="administration" position="1" number="2">        
  							<status>               
  								<visible>true</visible>               
  								<size>max</size>      
  							</status>     
  						</coplet>                                
  					</coplets>       
  			</column>       
  			<column position="2">    
  				<width>50%</width>    
  					<coplets>     
  						<coplet id="customnews" position="1" number="5">        
  							<status>              
  								<visible>true</visible>               
  								<size>max</size>      
  							</status>     
  						</coplet>    
  						<coplet id="feedback" position="2" number="7">        
  							<status>             
  								<visible>true</visible>               
  								<size>max</size>      
  							</status>     
  						</coplet>
  					</coplets>      
  			</column>        
  			<column position="3">    
  				<width>22%</width>    
  					<coplets>           
  						<coplet id="germany" position="2" number="9">        
  							<status>              
  								<visible>true</visible>               
  								<size>max</size>      
  							</status>     
  						</coplet>     
  					</coplets>      
  			</column>     
  		</content> 
  	</portal-profile>
  	<layout-delta>
  		<portal>
  			<layouts>
  				<layout>
  					<background>
  						<color>#ffffff</color>
  					</background>
  				</layout>
  			</layouts>
  		</portal>
  	</layout-delta>
  </user-delta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/profiles/userprofile-guest.xml
  
  Index: userprofile-guest.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: userprofile-guest.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  <user-delta>
  </user-delta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/roleprofile.xml
  
  Index: roleprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: roleprofile.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
  
  -->
  <roledelta>
  <session:include xmlns:session="http://cocoon.apache.org/session/1.0" ignoreErrors="true">
  	<session:connection>
  		<session:target>profiles/roleprofile-<session:getxml context="request" path="/parameter/role"/>.xml</session:target>
  	</session:connection>
  </session:include>
  </roledelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/saveglobalprofile.xml
  
  Index: saveglobalprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: saveglobalprofile.xml,v 1.1 2002/06/03 11:45:53 cziegeler Exp $ 
   Description: This resource saves the global delta.
  
  -->
  <userdelta xmlns:source="http://apache.org/cocoon/source/1.0"
             xmlns:session="http://cocoon.apache.org/session/1.0">
      <source:insert>
          <source:source>profiles/globalprofile.xml</source:source>
      	  <source:path>/</source:path>
          <source:fragment><session:getxml context="request" path="/parameter/content"/></source:fragment>
          <source:replace>global-delta</source:replace>
      </source:insert>
  </userdelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/saveroleprofile.xml
  
  Index: saveroleprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: saveroleprofile.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
   Description: This resource saves the role profile delta to a file with the name of the role.
  
  -->
  <userdelta xmlns:source="http://apache.org/cocoon/source/1.0"
             xmlns:session="http://cocoon.apache.org/session/1.0">
  	<source:insert>
      		<source:source>profiles/roleprofile-<session:getxml context="request" path="/parameter/role"/>.xml</source:source>
      	      <source:path>/</source:path>
      	      <source:fragment><session:getxml context="request" path="/parameter/content"/></source:fragment>
  	      <source:replace>role-delta</source:replace>
  	</source:insert>
  </userdelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/saveuserprofile.xml
  
  Index: saveuserprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: saveuserprofile.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  
   Description: This resource save the user profile delta to a file with the name of the user.
  
  -->
  <userdelta xmlns:source="http://apache.org/cocoon/source/1.0"
             xmlns:session="http://cocoon.apache.org/session/1.0">
      <source:insert>
      	  <source:source>profiles/userprofile-<session:getxml context="request" path="/parameter/ID"/>.xml</source:source>
          <source:path>/</source:path>
          <source:fragment><session:getxml context="request" path="/parameter/content"/></source:fragment>
          <source:replace>user-delta</source:replace>
      </source:insert>
  </userdelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/saveuserstatus.xml
  
  Index: saveuserstatus.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: saveuserstatus.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: This resource save the user status profile to a file with the name of the user.
  
  -->
  <userdelta xmlns:source="http://apache.org/cocoon/source/1.0"
             xmlns:session="http://cocoon.apache.org/session/1.0">
      <source:insert>
      	  <source:source>profiles/userstatus-<session:getxml context="request" path="/parameter/ID"/>.xml</source:source>
      	  <source:path>/</source:path>
      	  <source:fragment><session:getxml context="request" path="/parameter/content"/></source:fragment>
  	  <source:replace>status-profile</source:replace>
      </source:insert>
  </userdelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-changeuser.xml
  
  Index: sunrise-changeuser.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-changeuser.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: Add a new user
  
  -->
  
  <adduser xmlns:source="http://apache.org/cocoon/source/1.0"
           xmlns:session="http://cocoon.apache.org/session/1.0">
  	<!-- add to authentication users -->
  	<source:insert>
      		<source:source>resources/sunrise-user.xml</source:source>
      		<source:path>/authentication/users</source:path>
      		<source:fragment>
  		<user>
  			<name><session:getxml context="request" path="/parameter/ID"/></name>
  			<password>
  				<new><session:getxml context="request" path="/parameter/password"/></new>
  				<hashed><session:getxml context="request" path="/parameter/password"/></hashed>
  				<old><session:getxml context="request" path="/parameter/autholdpassword"/></old>
  			</password>
  			<role><session:getxml context="request" path="/parameter/role"/></role>
                    <title><session:getxml context="request" path="/parameter/title"/></title>
  			<firstname><session:getxml context="request" path="/parameter/firstname"/></firstname>
                    <lastname><session:getxml context="request" path="/parameter/lastname"/></lastname>
  			<company><session:getxml context="request" path="/parameter/company"/></company>
                    <street><session:getxml context="request" path="/parameter/street"/></street>
  			<zipcode><session:getxml context="request" path="/parameter/zipcode"/></zipcode>
                    <city><session:getxml context="request" path="/parameter/city"/></city>
  			<country><session:getxml context="request" path="/parameter/country"/></country>
                    <phone><session:getxml context="request" path="/parameter/phone"/></phone>
                    <fax><session:getxml context="request" path="/parameter/fax"/></fax>
  			<email><session:getxml context="request" path="/parameter/email"/></email>
                    <bankid><session:getxml context="request" path="/parameter/bankid"/></bankid>
  			<bankname><session:getxml context="request" path="/parameter/bankname"/></bankname>
                    <accountid><session:getxml context="request" path="/parameter/accountid"/></accountid>
  		</user>
  		</source:fragment>
  		<source:replace>user[name='<session:getxml context="request" path="/parameter/ID"/>']</source:replace>
  	</source:insert>
  </adduser>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-delrole.xml
  
  Index: sunrise-delrole.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-delrole.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: Delete a role
  
  -->
  
  <addrole xmlns:source="http://apache.org/cocoon/source/1.0"
           xmlns:session="http://cocoon.apache.org/session/1.0">
  	<source:insert>
      		<source:source>resources/sunrise-roles.xml</source:source>
      		<source:path>roles</source:path>
      		<source:fragment></source:fragment>
      		<source:replace>role[. = '<session:getxml context="request" path="/parameter/role"/>']</source:replace>
  	</source:insert>
  	<!-- delete role profile -->
  	<source:insert>
  		<source:source>profiles/roleprofile-<session:getxml context="request" path="/parameter/role"/>.xml</source:source>
      		<source:path>/</source:path>
      		<source:fragment><role-delta/>
  		</source:fragment>
  		<source:replace>role-delta</source:replace>
  	</source:insert>
  </addrole>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-deluser.xml
  
  Index: sunrise-deluser.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-deluser.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
   Description: Delete a user
  
  -->
  
  <adduser xmlns:source="http://apache.org/cocoon/source/1.0"
           xmlns:session="http://cocoon.apache.org/session/1.0">
  	<!-- delete from authentication users -->
  	<source:insert>
      		<source:source>resources/sunrise-user.xml</source:source>
      		<source:path>/authentication/users</source:path>
      		<source:fragment>
  		</source:fragment>
  		<source:replace>user[name='<session:getxml context="request" path="/parameter/ID"/>']</source:replace>
  	</source:insert>
  	<!-- delete user profile -->
  	<source:insert>
  		<source:source>profiles/userprofile-<session:getxml context="request" path="/parameter/ID"/>.xml</source:source>
      		<source:path>/</source:path>
      		<source:fragment><user-delta/>
  		</source:fragment>
  		<source:replace>user-delta</source:replace>
  	</source:insert>
  	<!-- delete user status profile -->
  	<source:insert>
  		<source:source>profiles/userstatus-<session:getxml context="request" path="/parameter/ID"/>.xml</source:source>
      		<source:path>/</source:path>
      		<source:fragment><user-delta/>
  		</source:fragment>
  		<source:replace>status-profile</source:replace>
  	</source:insert>
  </adduser>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-loaduser.xml
  
  Index: sunrise-loaduser.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-loaduser.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: load u user
  
  -->
  <loaduser xmlns:session="http://cocoon.apache.org/session/1.0">
  	<info>
  		<ID><session:getxml context="request" path="/parameter/ID"/></ID>
  		<role><session:getxml context="request" path="/parameter/role"/></role>
  		<type><session:getxml context="request" path="/parameter/type"/></type>
  	</info>
  	<session:include xmlns:session="http://cocoon.apache.org/session/1.0" ignoreErrors="true">
  		<session:connection>
  			<session:target>resources/sunrise-user.xml</session:target>
  		</session:connection>
  	</session:include>
  </loaduser>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-newrole.xml
  
  Index: sunrise-newrole.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-newrole.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: Add a new role
  
  -->
  
  <addrole xmlns:source="http://apache.org/cocoon/source/1.0"
           xmlns:session="http://cocoon.apache.org/session/1.0">
  	<source:insert>
      		<source:source>resources/sunrise-roles.xml</source:source>
      		<source:path>roles</source:path>
      		<source:fragment><role><session:getxml context="request" path="/parameter/role"/></role></source:fragment>
  	</source:insert>
  </addrole>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-newuser.xml
  
  Index: sunrise-newuser.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-newuser.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: Add a new user
  
  -->
  
  <adduser xmlns:source="http://apache.org/cocoon/source/1.0"
           xmlns:session="http://cocoon.apache.org/session/1.0">
  	<!-- add to authentication users -->
  	<source:insert>
      		<source:source>resources/sunrise-user.xml</source:source>
      		<source:path>/authentication/users</source:path>
      		<source:fragment>
  		<user>
  			<name><session:getxml context="request" path="/parameter/ID"/></name>
  			<password><session:getxml context="request" path="/parameter/password"/></password>
  			<role><session:getxml context="request" path="/parameter/role"/></role>
                    <title><session:getxml context="request" path="/parameter/title"/></title>
  			<firstname><session:getxml context="request" path="/parameter/firstname"/></firstname>
                    <lastname><session:getxml context="request" path="/parameter/lastname"/></lastname>
  			<company><session:getxml context="request" path="/parameter/company"/></company>
                    <street><session:getxml context="request" path="/parameter/street"/></street>
  			<zipcode><session:getxml context="request" path="/parameter/zipcode"/></zipcode>
                    <city><session:getxml context="request" path="/parameter/city"/></city>
  			<country><session:getxml context="request" path="/parameter/country"/></country>
                    <phone><session:getxml context="request" path="/parameter/phone"/></phone>
                    <fax><session:getxml context="request" path="/parameter/fax"/></fax>
  			<email><session:getxml context="request" path="/parameter/email"/></email>
                    <bankid><session:getxml context="request" path="/parameter/bankid"/></bankid>
  			<bankname><session:getxml context="request" path="/parameter/bankname"/></bankname>
                    <accountid><session:getxml context="request" path="/parameter/accountid"/></accountid>
  		</user>
  		</source:fragment>
  		<source:replace>user[name='<session:getxml context="request" path="/parameter/ID"/>']</source:replace>
  	</source:insert>
  </adduser>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-roles.xml
  
  Index: sunrise-roles.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: sunrise-roles.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: All roles
  
   -->
  <roles>
  	<role>admin</role>
  	<role>guest</role>
  	<role>user</role>
  </roles>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/sunrise-user.xml
  
  Index: sunrise-user.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!-- $Id: sunrise-user.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   Description: All portal users
  
  -->
  <authentication>
  	<users>
  		<user>
  			<name>cocoon</name>
  			<password>cocoon</password>
  			<role>admin</role>
                    <title>Mr.</title>
  			<firstname>Walter</firstname>
                    <lastname>Cocoon</lastname>
  			<company/>
                    <street/>
  			<zipcode/>
                    <city/>
  			<country/>
                    <phone/>
                    <fax/>
  			<email/>
                    <bankid/>
  			<bankname/>
                    <accountid/>
  		</user>
  		
  		
  		
  		<user>
  			<name>guest</name>
                    <password>guest</password>
  			<role>guest</role>
                    <title>Mrs.</title>
  			<firstname>G.</firstname>
                    <lastname>Guest</lastname>
  			<company>Cocoon</company>
                    <street>Cocoon Street</street>
  			<zipcode>33100</zipcode>
                    <city>Cocooncity</city>
  			<country>Somewhere</country>
                    <phone/>
                    <fax/>
  			<email>guest</email>
                    <bankid/>
  			<bankname/>
                    <accountid/>
  		</user>
  	
  		</users>
  
  </authentication>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/userprofile.xml
  
  Index: userprofile.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: userprofile.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <userdelta>
  <session:include xmlns:session="http://cocoon.apache.org/session/1.0" ignoreErrors="true">
  	<session:connection>
  		<session:target>profiles/userprofile-<session:getxml context="request" path="/parameter/ID"/>.xml</session:target>
  	</session:connection>
  </session:include>
  </userdelta>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/userstatus.xml
  
  Index: userstatus.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: userstatus.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
   Description: Load the status profile from a file name userstatus-<username>.xml
  
  -->
  <statusprofile>
  <session:include xmlns:session="http://cocoon.apache.org/session/1.0" ignoreErrors="true">
  	<session:connection>
  		<session:target>profiles/userstatus-<session:getxml context="request" path="/parameter/ID"/>.xml</session:target>
  	</session:connection>
  </session:include>
  </statusprofile>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/bottom.xml
  
  Index: bottom.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: bottom.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  
  -->
  <page>
      <content>
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%">
        		<tbody>
          		<tr>
            			<td>
        					<table align="center" border="0" cellPadding="0" cellSpacing="2" width="100%">
          					<tbody> 
          						<tr>        
            							<td align="center" bgcolor="#AAB9BF" noWrap="" vAlign="bottom" width="100%"> 
              							<img height="15" src="sunspotdemoimg-space.gif" width="1"/> 
  									</td>
                  				</tr>
                				</tbody>
              			</table>
            			</td>
          		</tr>
        		</tbody>
      	</table>
      </content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/header.xml
  
  Index: header.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: header.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   -->
  <page>
  	<content>
  		<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody> 
    			<tr>    		
      				<td> 
        					<table border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody> 
  						<tr> 
            							<td colspan="2" noWrap="" height="1%" bgcolor="#AAB9BF"> <img height="5" src="sunspotdemoimg-space.gif" width="1"/></td>
          						</tr>
          						<tr> 
            							<td noWrap="" align="center" bgcolor="#AAB9BF" height="98%"> <img src="sunspotdemoimg-logo.jpg" width="178" height="90"/></td>
            							<td bgcolor="#AAB9BF" height="98%" align="center" valign="middle"> 
              	
                      							<font face="Arial, Helvetica, sans-serif" size="6" color="#46627A">
  									<b>Cocoon Portal</b>
  								</font>
  													
              						 </td>
          						</tr>
          						<tr> 
            							<td align="center" height="1%" noWrap="" bgcolor="#cccccc" width="1%"> 
              							<img src="sunspotdemoimg-space.gif" width="190" height="10"/></td>
            							<td bgcolor="#cccccc" height="1%" width="99%"> <img height="10" src="sunspotdemoimg-space.gif" width="1"/> 
            							</td>
          						</tr>
  				        </tbody></table>
      				</td>
     			</tr>
  		</tbody></table>
  	</content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/loggedin.xml
  
  Index: loggedin.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: loggedin.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  	<pageset border="0" columns="*" frameBorder="NO" frameSpacing="2" rows="118,*" marginHeight="2">
  		<part title="Header" marginHeight="0" marginWidth="0" noResize="" scrolling="no">
  			<url>sunspotdemo-header</url>
  		</part>
  		<pageset border="0" columns="*" frameBorder="NO" frameSpacing="0" rows="*,15" marginHeight="2">
  			<part title="Content">
  				<url>sunspotdemo-loggedincontent</url>
  			</part>
  			<part name="bottom" marginHeight="0" marginWidth="0" noResize="" scrolling="no">
    				<url>sunspotdemo-bottom</url> 
    			</part>
  		</pageset>
  	</pageset>
  </page>
  
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/loggedincontent.xml
  
  Index: loggedincontent.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: loggedincontent.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
  <page>
  	<content>
  		<paragraph>
  			<center>You are already logged in.</center>
  		</paragraph>
  		<paragraph>
  			<center>
  				Please <link><target>_top</target>
                                       <url>sunspotdemo-logout</url>
  			  		       <text>log out first</text>
                                 </link>
  			</center>
  		</paragraph>
  		<paragraph><center> or </center></paragraph>
  		<paragraph>
  			<center>
  				<link>
  					<target>_top</target>
                                <url>sunspotdemo-portal</url>
  				      <text>use your current login.</text>
                        	</link>
  			</center>
  		</paragraph>
  	</content>
  </page>
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/logout.xml
  
  Index: logout.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: logout.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  
   Description: The logout page with redirection to the portal start page
  
  -->
  <page logout="YES">
  	
  	<logoutcontent>
  	
  		<logoutparagraph>
          			<center>Please visit us again...</center>
        	</logoutparagraph>
  		<logoutparagraph>
          			<center>You will be redirected to the Cocoon Portal Welcome Page....</center>
  		</logoutparagraph>
  		<logoutparagraph>
  			<center>If the redirection doesn't work for you, just click here:
  				<link>
  					<url>sunspotdemofree-portal</url>
  					<text>Welcome Page</text>
  					<target>_top</target>
  				</link>
  			</center>
  		</logoutparagraph>
  	</logoutcontent>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/portal.xml
  
  Index: portal.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: portal.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
  <page xmlns:session="http://cocoon.apache.org/session/1.0">
  	<pageset columns="*" rows="118,*">
  		<part title="Header" scrolling="no">
  			<url>sunspotdemo-header</url>
  		</part>
  		<pageset columns="*" rows="*,15">
  			<part title="Content">
  				<url>sunspotdemo-portlets<session:getxml context="request" path="/querystring"/></url>
  			</part>
  			<part name="bottom" scrolling="no">
    				<url>sunspotdemo-bottom</url> 
  	  		</part>
  		</pageset>
  	</pageset>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-administration.xml
  
  Index: sunlet-administration.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-administration.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <table><tbody>
  	<tr>
  		<td>&#160;</td>
  	</tr>
  	<tr>
  		<td>
  			<link><target>_new</target>
                          <text>User Managemenent</text>
                          <url>sunspotdemo-sunriseconf</url>
  			</link>
  		</td>
  	</tr>
  	<tr>
  		<td>
  			<link><target>_new</target>
                          <text>Portal Management</text>
                          <url>sunspotdemo-adminconf</url>
  			</link>
  		</td>
  	</tr>
  	<tr>
  		<td>&#160;</td>
  	</tr>
  	<tr>
  		<td>
  			<link><target>_new</target>
                          <text>Documentation</text>
                          <url>documents/index.html</url>
  			</link>
  		</td>
  	</tr>
  </tbody></table>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-customnews.xml
  
  Index: sunlet-customnews.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-customnews.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
  <p xmlns:session="http://cocoon.apache.org/session/1.0">
  	<session:include>
  		<session:connection>
  			<session:target>
  				http://p.moreover.com/cgi-local/page?index_<session:getxml context="portal" path="/coplet-data/feed"/>+xml
  			</session:target>
  		</session:connection>
  	</session:include>
  </p>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-feedback.xml
  
  Index: sunlet-feedback.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-feedback.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  
  
   Description: Feedback coplet
  
  -->
  <content>
  	If you like this, check out the 
  			<link><target>_new</target>
                          <text>Cocoon homepage</text>
                          <url>http://xml.apache.org/cocoon</url>
  			</link>
         for more information.
  </content>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-news.xml
  
  Index: sunlet-news.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-news.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
  <table cellSpacing="0" cellPadding="2" width="100%" border="0"><tbody>
  	<tr>
  		<td>
  			<b>
  				<link><url>http://www.aktienservice.de</url>
                                                           <text>Aktien-Newsletter</text>
  				</link>
  			</b>
  			<small>
  				<br/>
  				Kostenloser Newsletter zum Thema Aktien
              		</small>
  		</td>
  	</tr>
  	<tr>
  		<td>
  			<b>
  				<link><url>http://www.aktienservice.de</url>
                                                           <text>Neuer-Markt-Newsletter</text>
  				</link>
  			</b>
  			<small>
  				<br/>
                   			Behalten Sie die Uebersicht im Neuemmisionsdschungel
              		</small>
  		</td>
  	</tr>
  	<tr>
  		<td>
  			<b>
  				<link><url>http://www.aktienservice.de</url>
                                                           <text>Investmentfonds-Newsletter</text>
  				</link>
  			</b>
  			<img height="11" src="sunspotdemoimg-new3.gif" width="28" border="0"/>
  			<small>
  				<br/>
                 			Zeigt Ihnen mit welchen Fonds man richtig liegt            
              		</small>
  		</td>
  	</tr>
  </tbody></table>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-personalize.xml
  
  Index: sunlet-personalize.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-personalize.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
   <content>
   	<br/>
  	<img src="sunspotdemoimg-space.gif" width="10"/>
  	<b><link><url>sunspotdemo-conf</url><text>Customize</text></link></b>
  	<br/><br/>
  	<img src="sunspotdemoimg-space.gif" width="10"/>
  	<b><link><url>sunspotdemo-sunriseedit</url><text>Information</text></link></b>
  	<br/><br/>
  	<img src="sunspotdemoimg-space.gif" width="10"/>
  	<b><link><url>sunspotdemo-logout</url><text>Logout</text></link></b>
   </content>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunlet-personalizeguest.xml
  
  Index: sunlet-personalizeguest.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunlet-personalizeguest.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  -->
   <content>
   	<br/>
  	<img src="sunspotdemoimg-space.gif" width="10"/>
  	<b><link><url>sunspotdemo-conf</url><text>Customize</text></link></b>
  	<br/><br/>
  	<img src="sunspotdemoimg-space.gif" width="10"/>
  	<b><link><url>sunspotdemo-logout</url><text>Logout</text></link></b>
   </content>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/auth/sunletconfig-customnews.xml
  
  Index: sunletconfig-customnews.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunletconfig-customnews.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page xmlns:session="http://cocoon.apache.org/session/1.0">
  	<session:form name="customnews" method="POST">
  		<session:action><session:getxml context="portal" path="/configuration/uri"/></session:action>
  		<session:content>
  			<session:inputxml context="portal" path="/coplet-data/feed" name="Newsfeed" type="text"/>
  		</session:content>
              <input type="submit" value="Change"/>
  	</session:form>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/auth.xml
  
  Index: auth.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: auth.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  	<pageset columns="*" rows="118,*" scrolling="NO">
  		<part title="Header" scrolling="no">
  			<url>sunspotdemofree-header</url>
  		</part>
  		<pageset columns="*" rows="*,15">
  			<part title="Content">
  				<url>sunspotdemofree-login-error</url>
  			</part>
  			<part name="bottom" scrolling="no">
    				<url>sunspotdemofree-bottom</url> 
    			</part>
  		</pageset>
  	</pageset>
  
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/bottom.xml
  
  Index: bottom.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: bottom.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  	<content>
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody>
  	        		<tr>
            				<td>
        					<table align="center" border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody> 
          						<tr>        
            							<td align="center" bgcolor="#AAB9BF" noWrap="" vAlign="bottom" width="100%"> 
              							<img height="15" src="sunspotdemoimg-space.gif" width="1"/> 
  							</td>
  	                				</tr>
               				</tbody></table>
  	          			</td>
          			</tr>
        		</tbody></table>
      	</content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/content.xml
  
  Index: content.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: content.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  	<pageset columns="320,*" rows="*">
  		<part title="Login">
  			<url>sunspotdemofree-login</url>
  		</part>
  		<part title="News">
  			<url>sunspotdemofree-welcome</url>
  		</part>
  	</pageset>
  </page>
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/header.xml
  
  Index: header.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: header.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
   -->
  <page>
  	<content>
  		<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody> 
    			<tr>    		
      				<td> 
  					<table border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody> 
          						<tr> 
            							<td colspan="2" noWrap="" height="1%" bgcolor="#AAB9BF"> <img height="5" src="sunspotdemoimg-space.gif" width="1"/></td>
          						</tr>
          						<tr> 
            							<td noWrap="" align="center" bgcolor="#AAB9BF" height="98%"> <img src="sunspotdemoimg-logo.jpg" width="178" height="90"/></td>
            							<td bgcolor="#AAB9BF" height="98%" align="center" valign="middle"> 
              	
                      							<font face="Arial, Helvetica, sans-serif" size="6" color="#46627A">
  									<b>Cocoon Portal</b>
  								</font>
  													
              						 </td>
          						</tr>
          						<tr> 
            							<td align="center" height="1%" noWrap="" bgcolor="#cccccc" width="1%"> 
              						<img src="sunspotdemoimg-space.gif" width="300" height="10"/></td>
            							<td bgcolor="#cccccc" height="1%" width="99%"> <img height="10" src="sunspotdemoimg-space.gif" width="1"/> 
            							</td>
          						</tr>
          					</tbody></table>
  				</td>
  		   	</tr>
  		</tbody></table>
  	</content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/login-error.xml
  
  Index: login-error.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: login-error.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  	<content>
  		<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
  			<tr align="center"> 
  				<td>
  					<br/>
  					<font face="Arial, Helvetica, sans-serif" size="2">
  						<b>The Login was not successful.</b>
  					</font>
  					<br/><br/>
  				      	<font face="Arial, Helvetica, sans-serif" size="2">
  						<link>
  							<url>sunspotdemoportal</url>
  							<target>_top</target>
  							<text><b>Please try it again.</b></text>
  						</link>
  					</font>
  				</td>
  			</tr>
  		</tbody></table>
  	</content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/login.xml
  
  Index: login.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: login.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
   Description: The login form for the portal
  
  -->
  <page title="Portal Login">
  	<content>
  		<form>
  			<url>sunspotdemofree-auth?resource=sunspotdemo-portal</url>
  			<field name="name" type="text" length="24" description="User"/>
  			<field name="password"    type="password" length="10" description="Password"/>
  		</form>
  	</content>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/portal.xml
  
  Index: portal.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: portal.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <page>
  
  	<pageset columns="*" rows="118,*">
  		<part title="Header" scrolling="no">
  			<url>sunspotdemofree-header</url>
  		</part>
  		<pageset columns="*" rows="*,15">
  			<part title="Content">
  				<url>sunspotdemofree-content</url>
  			</part>
  			<part name="bottom" scrolling="no">
    				<url>sunspotdemofree-bottom</url> 
  	  		</part>
  		</pageset>
  	</pageset>
  </page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/resources/free/welcome.xml
  
  Index: welcome.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: welcome.xml,v 1.1 2002/06/03 11:45:54 cziegeler Exp $ 
  
  -->
  <content>
  	<table cellSpacing="0" cellPadding="2" width="100%" border="0">
  		<tbody>
  			<tr>
  				<td colSpan="1" width="100%" align="center">
  					<img src="sunspotdemoimg-cover_cocoon.gif"/>
  				</td>
  			</tr>
  		</tbody>
  	</table>
  </content>
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/TO-html.xsl
  
  Index: TO-html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: TO-html.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  
  -->
  
  <xsl:template match="page">
     <html>
      <head>
       <title>
        <xsl:if test="@title"><xsl:value-of select="@title"/></xsl:if>
        <xsl:if test="not(@title)">Cocoon Portal</xsl:if>
       </title>
       <xsl:if test="@logout">
    	 <script language="JavaScript"> 
  		function timeout() {
  			window.setTimeout("test()", 1500); 
  		}
  		function test() {  
    			top.location.href = "sunspotdemofree-portal";
  		} 
  	 </script> 
       </xsl:if>
      </head>
       <xsl:apply-templates/>
     </html>
    </xsl:template>
  
  <xsl:template match="content">
      <body text="#0B2A51" link="#0B2A51" vlink="#666666">
  		<xsl:apply-templates select="@*"/>
        <xsl:if test="/page/@logout">
          <xsl:attribute name="onLoad">timeout()</xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@bgcolor">
          <xsl:attribute name="bgcolor"><xsl:value-of select="/page/@bgcolor"/></xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@textcolor">
          <xsl:attribute name="text"><xsl:value-of select="/page/@textcolor"/></xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@background">
          <xsl:attribute name="background"><xsl:value-of select="/page/@background"/></xsl:attribute>
        </xsl:if>
        <xsl:apply-templates/>										
      </body>
  </xsl:template>
  
  <xsl:template match="logoutcontent">
      <body text="#0B2A51" link="#0B2A51" vlink="#666666">
  		<xsl:apply-templates select="@*"/>
        <xsl:if test="/page/@logout">
          <xsl:attribute name="onLoad">timeout()</xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@bgcolor">
          <xsl:attribute name="bgcolor"><xsl:value-of select="/page/@bgcolor"/></xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@textcolor">
          <xsl:attribute name="text"><xsl:value-of select="/page/@textcolor"/></xsl:attribute>
        </xsl:if>
        <xsl:if test="/page/@background">
          <xsl:attribute name="background"><xsl:value-of select="/page/@background"/></xsl:attribute>
        </xsl:if>
  	<table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
  			<tr>
  				<td height="100%" noWrap="" width="193" valign="top" bgcolor="#46627a">
  					<img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  				</td>
  				<td>
  					<table border="0" width="100%" cellspacing="0" cellpadding="0">
  						<xsl:attribute name="bgcolor">
  							<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/background/color"/>
  						</xsl:attribute>
  							
  							<tr>
  								<td width="1%"><img src="sunspotdemoimg-space.gif" width="20" height="1"/></td>
  								<td align="center">
  									<img src="sunspotdemoimg-space.gif" height="20" width="1"/>
  									<table border="0" width="100%">
  										<tr>
  											<td>	
        <xsl:apply-templates/>	
  	</td>
  										</tr>
  									</table>
  								</td>
  								<td><img src="sunspotdemoimg-space.gif" width="20"/></td>
  							</tr>
  						</table>
  					</td>
  				</tr>
  		</table>									
      </body>
  </xsl:template>
  
  <xsl:template match="paragraph">
      <xsl:if test="@title">
        <font face="Arial, Helvetica, sans-serif" size="3">
  	  	<b>
          <xsl:value-of select="@title"/>
  		</b>
        </font>
      </xsl:if>								
  	<p>
     	<font face="Arial, Helvetica, sans-serif" size="2">
   			<xsl:apply-templates/>	
  	 </font>
     </p>
    </xsl:template>
  
  <xsl:template match="logoutparagraph">							
  	<p>
     	<font face="Arial, Helvetica, sans-serif" size="2">
   			<xsl:apply-templates/>	
  	 </font>
     </p>
    </xsl:template>
  
  <xsl:template match="pageset">
        <frameset border="0" frameborder="0" framespacing="0" noresize="">
          <xsl:if test="@rows">
            <xsl:attribute name="rows"><xsl:value-of select="@rows"/></xsl:attribute>
          </xsl:if>
          <xsl:if test="@columns">
            <xsl:attribute name="cols"><xsl:value-of select="@columns"/></xsl:attribute>
          </xsl:if>
          <xsl:apply-templates/>
        </frameset>
    </xsl:template>
  
  <xsl:template match="pagepart">
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="part">  
      <frame frameborder="0" border="0" noresize="" marginHeight="0" marginwidth="0">
        <xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
        <xsl:attribute name="name"><xsl:value-of select="@title"/></xsl:attribute>
        <xsl:if test="@scrolling">
          <xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute>
        </xsl:if>
        <xsl:if test="@noresize">
          <xsl:attribute name="noresize"><xsl:value-of select="@noresize"/></xsl:attribute>
        </xsl:if>
      </frame>  
    </xsl:template>
  
  <xsl:template match="picture">
      <xsl:if test="action">
        <a href="{action/@url}">
          <img border="0">
            <xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute>
          </img>
        </a>
      </xsl:if>
      <xsl:if test="not(action)">    
        <img>
          <xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute>
        </img>
       </xsl:if>
    </xsl:template>
  
  <xsl:template match="picturedyn">
      <xsl:if test="action">
        <a href="{action/@url}">
          <img border="0">
            <xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
          </img>
        </a>
      </xsl:if>
      <xsl:if test="not(action)">    
        <img border="0">
          <xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
        </img>
       </xsl:if>
    </xsl:template>
  
  <xsl:template match="link">
      <a>
        <xsl:choose>
          <xsl:when test="starts-with(normalize-space(url), 'http')">
            <xsl:attribute name="target">_new</xsl:attribute>
          </xsl:when>
          <xsl:when test="target">
              <xsl:attribute name="target"><xsl:value-of select="normalize-space(target)"/></xsl:attribute>
          </xsl:when>     
          <xsl:otherwise>
            <xsl:attribute name="target">Main</xsl:attribute>
          </xsl:otherwise>
        </xsl:choose>
      
        <xsl:attribute name="href"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
        <xsl:value-of select="normalize-space(text)"/>
      </a>
    </xsl:template>
  
  <xsl:template match="field">
  	<td>
  	<xsl:value-of select="@name"/>
  	</td>
  	<td>
  		<input type="text" size="30">
          	<xsl:attribute name="name"><xsl:value-of select="@field"/></xsl:attribute>
          	<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
  		</input>
  	</td>
    </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/changeuser.xsl
  
  Index: changeuser.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: changeuser.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  -->
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="password">
  	<xsl:choose>
  		<xsl:when test="normalize-space(new) = normalize-space(old)">
  			<password><xsl:value-of select="normalize-space(old)"/></password>
  		</xsl:when>
  		<xsl:otherwise>
  			<password><xsl:value-of select="normalize-space(hashed)"/></password>
  		</xsl:otherwise>
  	</xsl:choose>
  </xsl:template>
  
  <!-- Copy all and apply templates -->
  <xsl:template match="@*|node()">
  	<xsl:copy>
  		<xsl:apply-templates select="@*|node()" />
  	</xsl:copy>
  </xsl:template>
  
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/load.xsl
  
  Index: load.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: load.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  -->
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
   <xsl:template match="ROWSET">
    <xsl:apply-templates/>
    </xsl:template>
  
   <xsl:template match="ROW">
    <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>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/login-html.xsl
  
  Index: login-html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: login-html.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
   Description: Login page to HTML
  
  -->
  
  <!-- Next transformation is "TO-html.xsl" -->
  
  <xsl:template match="content">
  	<content background="sunspotdemoimg-bg_menue1.gif">
  		<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="305"><tbody>
  		<tr>
  			<td>
  				<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody>
  					<tr>
  						<td bgColor="#46627a" vAlign="middle" width="15">
                      						<img height="1" src="sunspotdemoimg-space.gif" width="15"/>
                    					</td>
                    					<td bgColor="#46627a" align="center">
                      						<font color="#ffffff" face="Verdana, Arial, Helvetica, sans-serif" size="2">
                        							<b>
                          							<center>Cocoon Portal Login</center>
                        							</b>
                      						</font>
                    					</td>
                  				</tr>
                  				<tr>
                    					<td bgColor="#cccccc" width="15">
  				  			<IMG height="1" src="sunspotdemoimg-space.gif" width="15"/>
                    					</td>
                    					<td bgColor="#cccccc" align="center">
  				  			<br/>
                          					<font face="Arial, Helvetica, sans-serif" size="2">
                            						<xsl:apply-templates/>
  							</font>
  							<br/>
                    					</td>
                  				</tr>
                  				<tr>
  					            <td bgColor="#cccccc" width="15">
  							<img height="1" src="sunspotdemoimg-space.gif" width="15"/>
                    					</td>
                    					<td bgColor="#cccccc" align="center">
  				  			<br/>
                          					<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
                            						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>
  							</font>
  							<br/><br/>
                    					</td>
                  				</tr>
                			</tbody></table>
  	          		</td>
          		</tr>
  		</tbody></table>
  	</content>
  </xsl:template>
  
  <xsl:template match="form">
  	<form method="post" target="_top"><xsl:attribute name="action"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
        		<table>
  		        <xsl:apply-templates select="field"/><br/>
  		</table>
  		<input type="submit" value="Login"></input>
  	</form>
  </xsl:template>
  
  <xsl:template match="field">
  	<tr>
  		<td>
  			<font face="Arial, Helvetica, sans-serif" size="2"><xsl:value-of select="@description"/>:</font>
  		</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>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/portal.xsl
  
  Index: portal.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: portal.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  
  -->
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="ROWSET">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="ROW">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="userdelta">
  	<xsl:choose>
  	<xsl:when test="user-delta">
              <xsl:apply-templates select="user-delta"/>
  	</xsl:when>
  	<xsl:otherwise>
  	<user-delta/>
  	</xsl:otherwise>
  	</xsl:choose>
  </xsl:template>
  
  <xsl:template match="roledelta">
  	<xsl:choose>
  		<xsl:when test="*">
        	      <xsl:apply-templates/>
  		</xsl:when>
  		<xsl:otherwise>
  			<role-delta/>
  		</xsl:otherwise>
  	</xsl:choose>
  </xsl:template>
  
  <xsl:template match="statusprofile">
  	<xsl:choose>
  		<xsl:when test="*">
        	      <xsl:apply-templates/>
  		</xsl:when>
  		<xsl:otherwise>
  			<status-profile/>
  		</xsl:otherwise>
  	</xsl:choose>
  </xsl:template>
  
  
  <xsl:template match="loaduser">
  	<xsl:apply-templates select="authentication/users"/>
  </xsl:template>
  
  
  <xsl:template match="authentication/users">
  	<users>
  		<xsl:for-each select="user">
  			<xsl:call-template name="includeuser"/>
  		</xsl:for-each>
  	</users>
  </xsl:template>
  
  
  <xsl:template name="includeuser">
  	<xsl:variable name="type"><xsl:value-of select="normalize-space(ancestor::loaduser/info/type)"/></xsl:variable>
  	<xsl:variable name="name"><xsl:value-of select="normalize-space(ancestor::loaduser/info/ID)"/></xsl:variable>
    	<xsl:variable name="role"><xsl:value-of select="normalize-space(ancestor::loaduser/info/role)"/></xsl:variable>
  	
  	<xsl:choose>
  		<xsl:when test="normalize-space(role) = $role and ($type='users' or normalize-space(name) = $name)"> 
  			<user>
  				<ID><xsl:value-of select="name"/></ID>
  				<role><xsl:value-of select="role"/></role>
  				<data>
  					<password><xsl:value-of select="password"/></password>
  					<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>
  			</user>
  		</xsl:when>
  		<xsl:when test="$type='users' and string-length($role) = 0">
  			<user>
  				<ID><xsl:value-of select="name"/></ID>
  				<role><xsl:value-of select="role"/></role>
  				<data>
  					<password><xsl:value-of select="password"/></password>
  					<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>
  			</user>
  		</xsl:when>
  	</xsl:choose>
  </xsl:template>
  
  <xsl:template match="role">
  	<xsl:apply-templates select="role-delta"/>
  </xsl:template>
  
  <xsl:template match="roles">
  	<roles>
  		<xsl:for-each select="role">
  			<role><xsl:value-of select="."/></role>
  		</xsl:for-each>
  	</roles>
  </xsl:template>
  
  <!-- Copy all and apply templates -->
  <xsl:template match="@*|node()">
  	<xsl:copy>
  		<xsl:apply-templates select="@*|node()" />
  	</xsl:copy>
  </xsl:template>
  
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/portalHTML-Netscape.xsl
  
  Index: portalHTML-Netscape.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: portalHTML-Netscape.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  
   Description: Portal to HTML - Alternative for netscape (swapping coplet icons and title)
  
  -->
  
  <!-- The main element -->
  
  <xsl:template match="portal">
  <html>
  	<head>
      	<title>Portal</title>
      	</head>
  	<body text="#0B2A51" link="#0B2A51" vlink="#666666" bgcolor="#cccccc">
  		<xsl:attribute name="bgcolor"><xsl:value-of select="layout/portal/background/color"/></xsl:attribute>
  		<xsl:attribute name="text"><xsl:value-of select="layout/portal/font/color"/></xsl:attribute>
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%" height="100%">
  		<xsl:attribute name="bgcolor"><xsl:value-of select="layout/portal/background/color"/></xsl:attribute>
  			<tr>
  				<xsl:if test="header">
  					<td noWrap="" width="193" valign="top" rowspan="2" bgcolor="cccccc">
  			     		<xsl:apply-templates select="header"/>
  					</td>
  				</xsl:if>
  				<td valign="top">
  		  			<xsl:apply-templates select="columns"/>
  			                </td>
  			</tr>
  			<tr>
  				<td>
  					<xsl:if test="footer">
  						<xsl:apply-templates select="footer"/>
  					</xsl:if>
  				</td>
  			</tr>
  		</table>
  	</body>
  </html>
  </xsl:template>
  
  <!-- the header -->
  
  <xsl:template match="header">
  	<img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  	<table border="0" cellPadding="0" cellSpacing="0" width="100%" bgcolor="#ffffff"><tbody>
  		<tr>
  			<td valign="top">
  				<table border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody>
  					<tr>
  						<td noWrap="" width="1%" bgcolor="#46627A" >
  							<img src="sunspotdemoimg-space.gif" width="15" height="1"/>
  						</td>
  						<td width="99%" bgcolor="#46627A">
  							<font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">
  								<b><img height="1" src="sunspotdemoimg-space.gif" width="5"/>Cocoon Portal</b>
  							</font>
  						</td>
  					</tr>
  					<tr>
  						<td noWrap="" width="1%" bgcolor="#cccccc">
  							<img src="sunspotdemoimg-space.gif"/>
  						</td>
  						<td valign="top" bgcolor="#cccccc">
  							<br/>
  							<img height="1" src="sunspotdemoimg-space.gif" width="10"/>
             							<font face="Arial, Helvetica, sans-serif" size="2" color="#0B2A51">
  								<b>
  									<xsl:value-of select="ancestor::portal/personal-profile/greeting"/>
  								</b>
  								<br/><br/>
  								<xsl:if test="coplet">
  									<xsl:apply-templates select="coplet"/>
  								</xsl:if>
                  						</font>
  							<br/>
  						</td>
  					</tr>
  				</tbody></table>
  			</td>
  		</tr>
  	</tbody></table>
  </xsl:template>
  
  <!-- the footer -->
  
  <xsl:template match="footer">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <!-- The content of the portal -->
  
  <xsl:template match="columns">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<tr>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  	</tr>
  	<tr>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  		<xsl:for-each select="column">
  				<xsl:sort select="@position"/>
  				<xsl:apply-templates select="."/>
  		</xsl:for-each>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  	</tr>
  </table>
  </xsl:template>
  
  <!-- The content of each column -->
  
  <xsl:template match="column">
  <td vAlign="top">
  <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<xsl:for-each select="coplet">
  		<xsl:sort select="@position"/>
  		<tr>
  			<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  			<td vAlign="top">
  				<xsl:apply-templates select="."/>
  			</td>
  		</tr>
  	</xsl:for-each>
  </table>
  </td>
  </xsl:template>
  
  <!-- One coplet -->
  
  <xsl:template match="coplet">
  	<xsl:variable name="cmd"><xsl:value-of select="ancestor::portal/configuration/uri"/>&amp;portalcmd=</xsl:variable>
  	<xsl:variable name="copletident"><xsl:value-of select="@id"/>_<xsl:value-of select="@number"/></xsl:variable>
  <table border="0" cellSpacing="0" width="100%">
  	<tr vAlign="top">
  		<td align="left">
  			<xsl:attribute name="bgColor"><xsl:value-of select="ancestor::portal/layout/coplets/title/background/color"/></xsl:attribute>
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/size"/></xsl:attribute>
  				
  				<!-- customize -->
  				<xsl:if test="configuration/customizable='true' and (not(status/customize) or status/customize='false')">
  					<xsl:variable name="customize"><xsl:value-of select="$cmd"/>customize_<xsl:value-of select="$copletident"/></xsl:variable>
  					<a>
  						<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($customize), ' ', '')"/></xsl:attribute>
  						<img src="sunspotdemoimg-customize.gif" border="0" alt="Customize"/>
  					</a>
  				</xsl:if>
  				
  			<!-- minimize/maximize -->
  			<xsl:if test="configuration/sizable='true' and status/size/@formpath">
  				<xsl:variable name="linkurlmax"><xsl:value-of select="$cmd"/>minimize_<xsl:value-of select="$copletident"/></xsl:variable>
  				<xsl:variable name="linkurlmin"><xsl:value-of select="$cmd"/>maximize_<xsl:value-of select="$copletident"/></xsl:variable>
  				<a>
  					<xsl:choose>
  						<xsl:when test="status/size='max'">
  							<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmax), ' ', '')"/></xsl:attribute>
  							<img src="sunspotdemoimg-minimize.gif" border="0" alt="Minimize"/>
  						</xsl:when>
  						<xsl:otherwise>
  							<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmin), ' ', '')"/></xsl:attribute>
  							<img src="sunspotdemoimg-maximize.gif" border="0" alt="Maximize"/>
  						</xsl:otherwise>
  					</xsl:choose>
  				</a>
  			</xsl:if>
  			<!-- show/ hide -->
  			<xsl:choose>
  				<xsl:when test="status/visible/@formpath and configuration/mandatory='false'">
  					<xsl:variable name="linkurlshow"><xsl:value-of select="$cmd"/>show_<xsl:value-of select="$copletident"/></xsl:variable>
  					<xsl:variable name="linkurlhide"><xsl:value-of select="$cmd"/>hide_<xsl:value-of select="$copletident"/></xsl:variable>
  					<a>
  						<xsl:choose>
  							<xsl:when test="status/visible='true'">
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlhide), ' ', '')"/></xsl:attribute>
  								<img src="sunspotdemoimg-hide.gif" border="0" alt="Hide"/>
  							</xsl:when>
  							<xsl:otherwise>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlshow), ' ', '')"/></xsl:attribute>
  								<img src="sunspotdemoimg-show.gif" border="0" alt="Show"/>
  							</xsl:otherwise>
  						</xsl:choose>
  					</a>
  				</xsl:when>
  				<xsl:otherwise>
  					<img src="sunspotdemoimg-space.gif" border="0"/>
  				</xsl:otherwise>
  			</xsl:choose>
  			<!-- mandatory/delete -->
  			<xsl:if test="configuration/mandatory='false'">
  				<xsl:variable name="linkurlmand"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  				<a>
  					<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmand), ' ', '')"/></xsl:attribute>
  					<img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  				</a>
  			</xsl:if>
  			</font>
  		</td>
  		<td align="right">
  			<xsl:attribute name="bgColor"><xsl:value-of select="ancestor::portal/layout/coplets/title/background/color"/></xsl:attribute>
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/size"/></xsl:attribute>	
  				<img height="1" src="sunspotdemoimg-space.gif" width="5"/>				
  				<b><xsl:value-of select="title"/></b>
  			</font>
  		</td>
  	</tr>
  	<xsl:if test="content">
  		<tr>
  			<td colSpan="2">
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  				<xsl:apply-templates select="content"/>
  			</font>
  			</td>
  		</tr>
  	</xsl:if>
  </table>
  </xsl:template>
  
  <xsl:template match="content">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="td">
  	<td><xsl:for-each select="@*"><xsl:copy/></xsl:for-each>
  	<xsl:if test="not(font) and not(FONT)">
  		<font>
  			<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  			<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  			<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  			<xsl:apply-templates/>
  		</font>
  	</xsl:if>
  	<xsl:if test="font or FONT">
  		<xsl:apply-templates/>
  	</xsl:if></td>
  </xsl:template>
  
  <xsl:template match="TD">
  	<td><xsl:for-each select="@*"><xsl:copy/></xsl:for-each>
              <xsl:if test="not(font) and not(FONT)">
  		<font>
  			<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  			<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  			<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  			<xsl:apply-templates/>
  		</font>
  	</xsl:if>
  	<xsl:if test="font or FONT">
  		<xsl:apply-templates/>
  	</xsl:if></td>
  </xsl:template>
  
  
  <xsl:template match="link">
      <a>
          <xsl:if test="target">
              <xsl:attribute name="target"><xsl:value-of select="normalize-space(target)"/></xsl:attribute>
          </xsl:if>     
          <xsl:attribute name="href"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
         <xsl:value-of select="normalize-space(text)"/>
      </a>
    </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/portalHTML.xsl
  
  Index: portalHTML.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: portalHTML.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  
   Description: Portal to HTML
  
  -->
  
  <!-- The main element -->
  
  <xsl:template match="portal">
  <html>
  	<head>
      	<title>Portal</title>
      	</head>
  	<body text="#0B2A51" link="#0B2A51" vlink="#666666" bgcolor="#cccccc">
  		<xsl:attribute name="bgcolor"><xsl:value-of select="layout/portal/background/color"/></xsl:attribute>
  		<xsl:attribute name="text"><xsl:value-of select="layout/portal/font/color"/></xsl:attribute>
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%" height="100%">
  		<xsl:attribute name="bgcolor"><xsl:value-of select="layout/portal/background/color"/></xsl:attribute>
  			<tr>
  				<xsl:if test="header">
  					<td noWrap="" width="193" valign="top" rowspan="2" bgcolor="cccccc">
  			     		<xsl:apply-templates select="header"/>
  					</td>
  				</xsl:if>
  				<td valign="top" width="100%">
  		  			<xsl:apply-templates select="columns"/>
  			                </td>
  			</tr>
  			<tr>
  				<td>
  					<xsl:if test="footer">
  						<xsl:apply-templates select="footer"/>
  					</xsl:if>
  				</td>
  			</tr>
  		</table>
  	</body>
  </html>
  </xsl:template>
  
  <!-- the header -->
  
  <xsl:template match="header">
  	<img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  	<table border="0" cellPadding="0" cellSpacing="0" width="100%" bgcolor="#ffffff"><tbody>
  		<tr>
  			<td valign="top">
  				<table border="0" cellPadding="0" cellSpacing="2" width="100%"><tbody>
  					<tr>
  						<td noWrap="" width="1%" bgcolor="#46627A" >
  							<img src="sunspotdemoimg-space.gif" width="15" height="1"/>
  						</td>
  						<td width="99%" bgcolor="#46627A">
  							<font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">
  								<b><img height="1" src="sunspotdemoimg-space.gif" width="5"/>Cocoon Portal</b>
  							</font>
  						</td>
  					</tr>
  					<tr>
  						<td noWrap="" width="1%" bgcolor="#cccccc">
  							<img src="sunspotdemoimg-space.gif"/>
  						</td>
  						<td valign="top" bgcolor="#cccccc">
  							<br/>
  							<img height="1" src="sunspotdemoimg-space.gif" width="10"/>
             							<font face="Arial, Helvetica, sans-serif" size="2" color="#0B2A51">
  								<b>
  									<xsl:value-of select="ancestor::portal/personal-profile/greeting"/>
  								</b>
  								<br/><br/>
  								<xsl:if test="coplet">
  									<xsl:apply-templates select="coplet"/>
  								</xsl:if>
                  						</font>
  							<br/>
  						</td>
  					</tr>
  				</tbody></table>
  			</td>
  		</tr>
  	</tbody></table>
  </xsl:template>
  
  <!-- the footer -->
  
  <xsl:template match="footer">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <!-- The content of the portal -->
  
  <xsl:template match="columns">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<tr>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  	</tr>
  	<tr>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  		<xsl:for-each select="column">
  				<xsl:sort select="@position"/>
  				<xsl:apply-templates select="."/>
  		</xsl:for-each>
  		<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  	</tr>
  </table>
  </xsl:template>
  
  <!-- The content of each column -->
  
  <xsl:template match="column">
  <td vAlign="top">
  <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<xsl:for-each select="coplet">
  		<xsl:sort select="@position"/>
  		<tr>
  			<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
  			<td vAlign="top">
  				<xsl:apply-templates select="."/>
  			</td>
  		</tr>
  	</xsl:for-each>
  </table>
  </td>
  </xsl:template>
  
  <!-- One coplet -->
  
  <xsl:template match="coplet">
  	<xsl:variable name="cmd"><xsl:value-of select="ancestor::portal/configuration/uri"/>&amp;portalcmd=</xsl:variable>
  	<xsl:variable name="copletident"><xsl:value-of select="@id"/>_<xsl:value-of select="@number"/></xsl:variable>
  <table border="0" cellSpacing="0" width="100%">
  	<tr vAlign="top">
  		<td>
  			<xsl:attribute name="bgColor"><xsl:value-of select="ancestor::portal/layout/coplets/title/background/color"/></xsl:attribute>
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/size"/></xsl:attribute>	
  				<img height="1" src="sunspotdemoimg-space.gif" width="5"/>				
  				<b><xsl:value-of select="title"/></b>
  			</font>
  		</td>
  		<td align="right">
  			<xsl:attribute name="bgColor"><xsl:value-of select="ancestor::portal/layout/coplets/title/background/color"/></xsl:attribute>
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/title/font/size"/></xsl:attribute>
  				
  				<!-- customize -->
  				<xsl:if test="configuration/customizable='true' and (not(status/customize) or status/customize='false')">
  					<xsl:variable name="customize"><xsl:value-of select="$cmd"/>customize_<xsl:value-of select="$copletident"/></xsl:variable>
  					<a>
  						<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($customize), ' ', '')"/></xsl:attribute>
  						<img src="sunspotdemoimg-customize.gif" border="0" alt="Customize"/>
  					</a>
  				</xsl:if>
  				
  				<!-- minimize/maximize -->
  				<xsl:if test="configuration/sizable='true' and status/size/@formpath">
  					<xsl:variable name="linkurlmax"><xsl:value-of select="$cmd"/>minimize_<xsl:value-of select="$copletident"/></xsl:variable>
  					<xsl:variable name="linkurlmin"><xsl:value-of select="$cmd"/>maximize_<xsl:value-of select="$copletident"/></xsl:variable>
  					<a>
  						<xsl:choose>
  							<xsl:when test="status/size='max'">
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmax), ' ', '')"/></xsl:attribute>
  								<img src="sunspotdemoimg-minimize.gif" border="0" alt="Minimize"/>
  							</xsl:when>
  							<xsl:otherwise>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmin), ' ', '')"/></xsl:attribute>
  								<img src="sunspotdemoimg-maximize.gif" border="0" alt="Maximize"/>
  							</xsl:otherwise>
  						</xsl:choose>
  					</a>
  				</xsl:if>
  		
  				<!-- show/ hide -->
  				<xsl:choose>
  					<xsl:when test="status/visible/@formpath and configuration/mandatory='false'">
  						<xsl:variable name="linkurlshow"><xsl:value-of select="$cmd"/>show_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:variable name="linkurlhide"><xsl:value-of select="$cmd"/>hide_<xsl:value-of select="$copletident"/></xsl:variable>
  						<a>
  							<xsl:choose>
  								<xsl:when test="status/visible='true'">
  									<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlhide), ' ', '')"/></xsl:attribute>
  									<img src="sunspotdemoimg-hide.gif" border="0" alt="Hide"/>
  								</xsl:when>
  								<xsl:otherwise>
  									<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlshow), ' ', '')"/></xsl:attribute>
  									<img src="sunspotdemoimg-show.gif" border="0" alt="Show"/>
  								</xsl:otherwise>
  							</xsl:choose>
  						</a>
  					</xsl:when>
  					<xsl:otherwise>
  						<img src="sunspotdemoimg-space.gif" border="0"/>
  					</xsl:otherwise>
  				</xsl:choose>
  	
  				<!-- mandatory/delete -->
  				<xsl:if test="configuration/mandatory='false'">
  					<xsl:variable name="linkurlmand"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  					<a>
  						<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmand), ' ', '')"/></xsl:attribute>
  						<img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  					</a>
  				</xsl:if>
  			</font>
  		</td>
  	</tr>
  	<xsl:if test="content">
  		<tr>
  			<td colSpan="2">
  			<font>
  				<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  				<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  				<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  				<xsl:apply-templates select="content"/>
  			</font>
  			</td>
  		</tr>
  	</xsl:if>
  </table>
  </xsl:template>
  
  <xsl:template match="content">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="td">
  	<td><xsl:for-each select="@*"><xsl:copy/></xsl:for-each>
  	<xsl:if test="not(font) and not(FONT)">
  		<font>
  			<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  			<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  			<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  			<xsl:apply-templates/>
  		</font>
  	</xsl:if>
  	<xsl:if test="font or FONT">
  		<xsl:apply-templates/>
  	</xsl:if></td>
  </xsl:template>
  
  <xsl:template match="TD">
  	<td><xsl:for-each select="@*"><xsl:copy/></xsl:for-each>
              <xsl:if test="not(font) and not(FONT)">
  		<font>
  			<xsl:attribute name="color"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/color"/></xsl:attribute>
  			<xsl:attribute name="face"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/type"/></xsl:attribute>
  			<xsl:attribute name="size"><xsl:value-of select="ancestor::portal/layout/coplets/content/font/size"/></xsl:attribute>
  			<xsl:apply-templates/>
  		</font>
  	</xsl:if>
  	<xsl:if test="font or FONT">
  		<xsl:apply-templates/>
  	</xsl:if></td>
  </xsl:template>
  
  
  <xsl:template match="link">
      <a>
          <xsl:if test="target">
              <xsl:attribute name="target"><xsl:value-of select="normalize-space(target)"/></xsl:attribute>
          </xsl:if>     
          <xsl:attribute name="href"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
         <xsl:value-of select="normalize-space(text)"/>
      </a>
    </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/portalconfHTML.xsl
  
  Index: portalconfHTML.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: portalconfHTML.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  
   Description: Portal Configuration to HTML
  
  -->
  
  <!-- Frameset -->
  
  <xsl:template match="pageset">
  	<frameset border="0" frameBorder="NO" frameSpacing="2">
  		<xsl:if test="@rows">
  			<xsl:attribute name="rows"><xsl:value-of select="@rows"/></xsl:attribute>
          		</xsl:if>
          		<xsl:if test="@columns">
          			<xsl:attribute name="cols"><xsl:value-of select="@columns"/></xsl:attribute>
          		</xsl:if>
          		<xsl:apply-templates/>
  	</frameset>
  </xsl:template>
  
  <xsl:template match="pagepart">
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="part">  
  	<frame frameborder="0" marginHeight="0" marginWidth="0" noResize="">
  		<xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
        	<xsl:attribute name="name"><xsl:value-of select="@title"/></xsl:attribute>
        	<xsl:if test="@scrolling">
          		<xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute>
        	</xsl:if>
        	<xsl:if test="@noresize">
          		<xsl:attribute name="noresize"><xsl:value-of select="@noresize"/></xsl:attribute>
        	</xsl:if>
  	</frame>  
  </xsl:template>
  
  <!-- /Frameset -->
  
  <xsl:template name="inputfield">
  	<xsl:choose>
  		<xsl:when test="@formtype='BOOLEAN'">
  			<select>
  				<xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  				<option value="true"><xsl:if test="normalize-space(.)='true'">
  						<xsl:attribute name="selected">true</xsl:attribute>
  					</xsl:if>Yes
  				</option>
  				<option value="false"><xsl:if test="normalize-space(.)='false'">
  					<xsl:attribute name="selected">true</xsl:attribute>
  					</xsl:if>No
  				</option>
  			</select>
  		</xsl:when>
  		<xsl:when test="@formtype='CARDINAL'">
  			<input>
  				<xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  				<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  				<xsl:attribute name="type">text</xsl:attribute>
  				<xsl:attribute name="size">10</xsl:attribute>
  			</input>
  		</xsl:when>
  		<xsl:when test="@formtype='INTEGER'">
  			<input>
  				<xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  				<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  				<xsl:attribute name="type">text</xsl:attribute>
  				<xsl:attribute name="size">10</xsl:attribute>
  			</input>
  		</xsl:when>
  		<xsl:when test="@formtype='STRING'">
  			<input>
  				<xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  				<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  				<xsl:attribute name="type">text</xsl:attribute>
  			</input>
  		</xsl:when>
  		<xsl:otherwise>
  			<select>
  				<xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  				<xsl:variable name="typename"><xsl:value-of select="@formtype"/></xsl:variable>
  				<xsl:variable name="value" select="normalize-space(.)"/>
  				<xsl:for-each select="ancestor::portalconf/typedefs/typedef[@name=$typename]/value">
  					<option>
  						<xsl:attribute name="value"><xsl:value-of select="normalize-space(.)"/></xsl:attribute>
  						<xsl:if test="normalize-space(.)=$value">
  							<xsl:attribute name="selected">true</xsl:attribute>
  						</xsl:if>
  						<xsl:value-of select="@name"/>
  					</option>
  				</xsl:for-each>
  			</select>
  		</xsl:otherwise>
  	</xsl:choose>
  </xsl:template>
  
  <!-- Portal Configuration -->
  
  <xsl:template match="portalconf">
  <html>
  <head>
      <title>Portal Configuration</title>
  </head>
  <body text="#0B2A51" link="#0B2A51" vlink="#666666">
  <xsl:attribute name="bgcolor">
  	<xsl:value-of select="layout-profile/portal/layouts/layout/background/color"/>
  </xsl:attribute>
  
  <table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
  	<tr>
  
  <!-- menue -->
  		<td height="100%" noWrap="" width="193" valign="top" bgcolor="cccccc">
  		<img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  			<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%">
  				<tr>
  					<td>
  						<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  							<tr>
  								<td bgcolor="#46627A" width="1%">
  									<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  								</td>
  								<td bgcolor="#cccccc">
  									<br/>
  									<font face="Arial, Helvetica, sans-serif" size="2">
  										<xsl:variable name="linkurl"><xsl:value-of select="configuration/portal"/>?portalprofile=<xsl:value-of select="configuration/profile"/></xsl:variable>
  										<b><a target="_top">
  											<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  											<blockquote>Your Portal</blockquote>
  										</a></b>
  									</font>
  								</td>
  							</tr>
  							<tr>
  								<td bgcolor="#46627A" width="1%">
  									<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  								</td>
  								<td bgcolor="#cccccc">
  									<Bbr/>
  									<font face="Arial, Helvetica, sans-serif" size="2">
    										<xsl:variable name="linkurl"><xsl:value-of select="configuration/portal"/>?portalprofile=<xsl:value-of select="configuration/profile"/>&amp;portalcmd=save</xsl:variable>
  										<b><a target="_top">
  											<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
                                              <blockquote>Save</blockquote>					
  										</a></b>
  									</font>
  									<font face="Arial, Helvetica, sans-serif" size="1">
                                                                                                                          <p align="center">If you change the portal layout, you first have to accept the changes with "Change Layout"</p>
  									</font>
  								</td>
  							</tr>
  						</table>
  					</td>
  				</tr>
  			</table>
  		</td>
  <!-- /menue -->
  
  <!-- content -->
  		<td>
  			<table border="0" width="100%" cellspacing="0" cellpadding="0">
  						<xsl:attribute name="bgcolor">
  							<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/background/color"/>
  						</xsl:attribute>
  							<tr>
  				<td width="1%"><img src="sunspotdemoimg-space.gif" width="20" height="1"/></td>
  				<td align="center">
  					<img src="sunspotdemoimg-space.gif" height="20" width="1"/>
  					<table border="0" width="100%">
  						<tr>
  							<td>
  								<xsl:apply-templates select="layout-profile"/>
  							</td>
  						</tr>
  						<tr>
  							<td>
  								<xsl:apply-templates select="portal-profile"/>
  							</td>
  						</tr>
  						<tr>
  							<td><img src="sunspotdemoimg-space.gif" height="10"/></td>
  						</tr>
  						<tr>
  							<td>
  								<xsl:apply-templates select="coplets-profile"/>
              				</td>
  						</tr>
  					</table>
  				</td>
  				<td><img src="sunspotdemoimg-space.gif" width="20"/></td>
  				</tr></table></td>
  <!-- /content -->
  
  			</tr>
  		</table>
  	</body>
  </html>
  </xsl:template>
  
  <!-- /Portal Configuration -->
  
  <!-- Portal Administration -->
  
  <xsl:template match="portaladminconf">
  <html>
  	<head>
  		<title>Portal Administration</title>
  	</head>
  	<body text="#0B2A51" link="#0B2A51" vlink="#666666" bgColor="#cccccc">
  		<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody>
          		<tr>
         			<td>
  		            	<table border="0" cellPadding="0" cellSpacing="2" height="100%" width="100%"><tbody>
  
  <!-- Header -->
  					<tr>
  		                  			<td bgcolor="#AAB9BF" noWrap="" colspan="3">
  								 <img src="sunspotdemoimg-space.gif" height="5"/>
  						</td>
  					</tr>
                  				<tr>
  		                  			<td bgcolor="#AAB9BF" noWrap="">	
  								<img src="sunspotdemoimg-logo.jpg"/>
                    					</td>
                    					<td bgcolor="#AAB9BF" valign="bottom" align="center" colspan="2">
                      							<font face="Arial, Helvetica, sans-serif" size="6" color="#46627A">
  									<b>Portal Administration</b>
  								</font>
  		                  			</td>
                  				</tr>
  		                		<tr>
                    					<td noWrap="" width="10%" bgcolor="#cccccc">
  								<img src="sunspotdemoimg-space.gif" height="10"/>
                    					</td>
  		                  			<td width="90%" bgcolor="#cccccc" colspan="2">
  								&#160;
  						</td>
                  				</tr>
  <!-- /Header -->	
  
  <!-- Hauptseite -->	
  					<xsl:choose>
  						<xsl:when test="state = 'main' or state = 'mainrole'">
  							<tr>
  <!-- Menue -->
       				      			<td bgcolor="#cccccc">
  									<img src="sunspotdemoimg-space.gif"/>
  								</td>
  
  								<td>
  									<img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  								</td>
  		                 				<td align="center">
  									<img src="sunspotdemoimg-space.gif" height="10"/>
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=main&amp;portaladmin_coplets=cleancache</xsl:variable>
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Clear Profile Cache</a>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  											</td>
  										</tr>
  									</table>
  									<br/>
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplets</xsl:variable>
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Change coplet Profile</a>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  															     After you have changed the coplet Profile, you have to logout and login again, before you can edit other profiles.
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  											</td>
  										</tr>
  									</table>
  									<br/>
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  															<xsl:attribute name="color">
  																<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  															</xsl:attribute>
  																<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=global</xsl:variable>
  																<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Change global Profile</a>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  															     After you have changed the global Profile, you have to logout and login again, before you can edit other profiles.
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  											</td>
  										</tr>
  									</table>
  									<br/>
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=role</xsl:variable>
  													<form method="post">
  														<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b>Change role profile</b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Rolename:
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portalrole">
  															<xsl:for-each select="roles/role">
  															<option>
  																<xsl:attribute name="value">
  																	<xsl:value-of select="normalize-space(.)"/>
  																</xsl:attribute>
  																<xsl:value-of select="normalize-space(.)"/>
  															</option>
  															</xsl:for-each>
  															</select>		
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td background="sunspotdemoimg-line_bg.gif" width="1%">
  															<img src="sunspotdemoimg-space.gif" height="20"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%">
  															<img src="sunspotdemoimg-kast_url_u.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="submit" value="Change Role Profile"/>
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  														</td>
  													</tr>
  												 	</form>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  														<td width="98%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  															     After you have changed a Role Profile, you have to logout and login again, before you can edit other profiles.
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  											</td>
  										</tr>
  									</table>
  									<br/>
  					
  									<!-- Role selection for user selection -->
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=mainrole</xsl:variable>
  													<form method="post">
  														<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b>Change User Profile</b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Rolename:
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<xsl:variable name="selectedrole"><xsl:value-of select="roleusers/name"/></xsl:variable>
  															<xsl:variable name="selectedstate"><xsl:value-of select="state"/></xsl:variable>
  															<select name="portalrole">
  															<xsl:for-each select="roles/role">
  															<option>
  																<xsl:if test="normalize-space($selectedstate) = 'mainrole' and normalize-space($selectedrole) = normalize-space(.)">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																</xsl:if>
  																<xsl:attribute name="value">
  																	<xsl:value-of select="normalize-space(.)"/>
  																</xsl:attribute>
  																<xsl:value-of select="normalize-space(.)"/>
  															</option>
  															</xsl:for-each>
  															</select>		
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td background="sunspotdemoimg-line_bg.gif" width="1%">
  															<img src="sunspotdemoimg-space.gif" height="20"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%">
  															<img src="sunspotdemoimg-kast_url_u.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="submit" value="Select Role"/>
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  														</td>
  													</tr>
  												 	</form>
  													<xsl:if test="state = 'mainrole'">
  														<xsl:variable name="acturl2"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=user</xsl:variable>
  														<form method="post">
  															<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl2), ' ', '')"/></xsl:attribute>
  															<input name="portalrole" type="hidden">
  																<xsl:attribute name="value"><xsl:value-of select="roleusers/name"/></xsl:attribute>
  															</input>
  															<tr>
  																<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																	<img src="sunspotdemoimg-kast.gif"/>
  																</td>
  																<td width="1%">
  																	<font face="Arial, Helvetica, sans-serif" size="2">
  																		User:
  																	</font>
  																</td>
  																<td width="97%">
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<select name="portalid">
  																<xsl:for-each select="roleusers/users/user">
  																	<option>
  																		<xsl:attribute name="value">
  																			<xsl:value-of select="normalize-space(ID)"/>
  																		</xsl:attribute>
  																		<xsl:value-of select="normalize-space(ID)"/>
  																	</option>
  																</xsl:for-each>
  																</select>		
  																</td>
  															</tr>
  															<tr>
  																<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																<td background="sunspotdemoimg-line_bg.gif" width="1%">
  																	<img src="sunspotdemoimg-space.gif" height="20"/>
  																</td>
  																<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  															</tr>
  															<tr>
  																<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																<td width="1%">
  																	<img src="sunspotdemoimg-kast_url_u.gif"/>
  																</td>
  																<td width="1%">
  																	<font face="Arial, Helvetica, sans-serif" size="2">
  																		<input type="submit" value="Change User Profile"/>
  																	</font>
  																</td>
  																<td width="97%">
  																	<img src="sunspotdemoimg-space.gif" width="10"/>
  																</td>
  															</tr>
  													 	</form>
  														<tr>
  															<td width="1%">
  																<img src="sunspotdemoimg-space.gif" width="30"/>
  															</td>
  															<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  															<td width="98%" colspan="2">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  															     After you have changed a user Profile, you have to logout and login again, before you can edit other profiles.
  																</font>
  															</td>
  														</tr>
  													</xsl:if>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  											</td>
  										</tr>
  									</table>
  									<br/>
  								</td>
  							</tr>
  						</xsl:when>
  <!--  /Hauptseite -->
  
  <!--  Bearbeiten -->
  						<xsl:when test="state='role' or state='user' or state='global'">
  							<tr>
  
  <!--  Menue -->
   								<td bgcolor="#cccccc" valign="top" width="193">
  									<img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  									<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2">
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=main</xsl:variable>
  													<b><a>
  														<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<blockquote>Main</blockquote>
  													</a></b>
  												</font>
  											</td>
  										</tr>
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2"><b>
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=main&amp;portalcmd=save</xsl:variable>
  													<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<blockquote>Save</blockquote>
  													</a>
  												</b></font>
  									<font face="Arial, Helvetica, sans-serif" size="1">
                                             <p align="center">If you have changed the layout, you have to accept this first by "Change Layout".</p>
  									</font>
  											</td>
  										</tr>
  									</table>
  								</td>
  <!-- /Menue -->
  
  <!-- Content -->
                    							<td align="center">
  									<table border="0" cellPadding="0" cellSpacing="0" width="100%">
  										<xsl:attribute name="bgcolor">
  											<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/background/color"/>
  										</xsl:attribute>
  										<tr><td><img src="sunspotdemoimg-space.gif" width="1" height="20"/></td></tr>
  										<tr>
  											<td width="1%"><img src="sunspotdemoimg-space.gif" width="20"/></td>
  											<td>
  											<xsl:choose>
  												<xsl:when test="state ='global'">
  													<font face="Arial, Helvetica, sans-serif" size="5">
  														<xsl:attribute name="color">
  															<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  														</xsl:attribute>
  														<b>Global Profile</b>
  													</font>
  												</xsl:when>
  												<xsl:when test="state ='role'">
  													<font face="Arial, Helvetica, sans-serif" size="5">
  														<xsl:attribute name="color">
  															<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  														</xsl:attribute>
  														<b>Role Profile: <xsl:value-of select="role"/></b>
  													</font>
  												</xsl:when>
  												<xsl:when test="state ='user'">
  													<font face="Arial, Helvetica, sans-serif" size="5">
  														<xsl:attribute name="color">
  															<xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  														</xsl:attribute>															
  														<b>User Profile: <xsl:value-of select="role"/>/<xsl:value-of select="id"/></b>
  													</font>
  												</xsl:when>
  											</xsl:choose>
  											<br/><br/>
  											<table border="0" width="100%" cellpadding="0" cellspacing="0">
  												<tr>
  													<td>
  														<xsl:apply-templates select="portalconf/layout-profile"/>
  													</td>
  												</tr>
  												<tr>
  													<td>
  														<xsl:apply-templates select="portalconf/portal-profile"/>
  													</td>
  												</tr>
  												<tr>
  													<td>
  														<img src="sunspotdemoimg-space.gif" height="10"/>
  													</td>
  												</tr>
  												<tr>
  													<td>
  														<xsl:apply-templates select="portalconf/coplets-profile"/>
              			            								</td>
  												</tr>
  												<tr>
  													<td>
  														<img src="sunspotdemoimg-space.gif" height="10"/>
  													</td>
  												</tr>
  												<tr>
  													<td>
  														<xsl:for-each select="portalconf/coplets-profile">
  															<xsl:call-template name="admin_coplets-profile"/>
  														</xsl:for-each>
              				            							</td>
  												</tr>
  											</table>
  										</td>
  										<td><img src="sunspotdemoimg-space.gif" width="20"/></td>
  									</tr>
  								</table>
  							</td>
  						</tr>
  						</xsl:when>
  						<xsl:when test="state='coplets'"> 
  							<tr>
  
  <!--  Menue -->
   								<td bgcolor="#cccccc" valign="top" width="193">
  									<img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  									<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2">
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=main</xsl:variable>
  													<b><a>
  														<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<blockquote>Main</blockquote>
  													</a></b>
  												</font>
  											</td>
  										</tr>
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2"><b>
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=main&amp;portaladmin_coplets=save</xsl:variable>
  													<a>
  														<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<blockquote>Save</blockquote>
  													</a>
  												</b></font>
  											</td>
  										</tr>
  									</table>
  								</td>
  <!-- /Menue -->
  
  <!-- Content -->
  			                  	<td><img src="sunspotdemoimg-space.gif" height="1" width="10"/></td>
  								<!-- Present list of coplets for editing-->
  								<td align="center">
  									<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400" nowrap="">
  										<tr>	
  											<td>
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10" width="1"/></td>
  													</tr>
  													<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplet</xsl:variable>
  													<form method="post">
  														<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b>Edit coplet</b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																		<img src="sunspotdemoimg-kast.gif"/>
  																	</td>
  																	<td width="98%" colspan="2">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			coplet:
  																		</font>
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																		<select name="portalcoplet">
  																		<xsl:for-each select="coplets/coplets-profile/coplets/coplet">
  																		<option>
  																			<xsl:attribute name="value">
  																				<xsl:value-of select="normalize-space(@id)"/>
  																			</xsl:attribute>
  																			<xsl:value-of select="normalize-space(title)"/>
  																		</option>
  																		</xsl:for-each>
  																		</select>		
  																	</td>
  																</tr>
  																<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td background="sunspotdemoimg-line_bg.gif" width="1%">
  																		<img src="sunspotdemoimg-space.gif" height="20"/>
  																	</td>
  																	<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  																</tr>
  																<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td width="1%">
  																		<img src="sunspotdemoimg-kast_url_u.gif"/>
  																	</td>
  																	<td width="1%">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			<input type="submit" value="Change coplet"/>
  																		</font>
  																	</td>
  																	<td width="97%">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																	</td>
  																</tr>
  												 				</form>
  																<tr>
  																	<td colspan="4">
  																		<img src="sunspotdemoimg-space.gif" height="10"/>
  																	</td>
  																</tr>
  															</table>
  														</td>
  													</tr>
  												</table>
  												<br/>
  								
  									<!-- Present list of coplets for deleting-->
  												<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400">
  													<tr>	
  														<td>
  															<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  																<tr>
  																	<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  																</tr>
  																<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplets&amp;portaladmin_coplets=delete</xsl:variable>
  																<form method="post">
  																<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  																<tr>
  																	<td width="1%">
  																		<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  																	</td>
  																	<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  																	<td colspan="2">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			<b>Delete coplet</b>
  																		</font>
  																	</td>
  																</tr>
  																<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																		<img src="sunspotdemoimg-kast.gif"/>
  																	</td>		
  																	<td width="98%" colspan="2">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			coplet:
  																		</font>
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																		<select name="portalcoplet">
  																			<xsl:for-each select="coplets/coplets-profile/coplets/coplet">
  																			<option>
  																			<xsl:attribute name="value">
  																				<xsl:value-of select="normalize-space(@id)"/>
  																			</xsl:attribute>
  																			<xsl:value-of select="normalize-space(title)"/>
  																			</option>
  																			</xsl:for-each>
  																		</select>		
  																	</td>
  																</tr>
  																<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td background="sunspotdemoimg-line_bg.gif" width="1%">
  																		<img src="sunspotdemoimg-space.gif" height="20"/>
  																	</td>
  																	<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  																</tr>
  																<tr>
  																	<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  																	<td width="1%">
  																		<img src="sunspotdemoimg-kast_url_u.gif"/>
  																	</td>
  																	<td width="1%">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			<input type="submit" value="Delete coplet"/>
  																		</font>
  																	</td>
  																	<td width="97%">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																	</td>
  																</tr>
  												 				</form>
  																<tr>
  																	<td colspan="4">
  																		<img src="sunspotdemoimg-space.gif" height="10"/>
  																	</td>
  																</tr>
  															</table>
  														</td>
  													</tr>
  												</table>
  												<br/>
  								
  									<!--New coplet-->
  												<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplet&amp;portaladmin_coplets=new</xsl:variable>
  												<form method="post">
  													<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  												<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400">
  										<tr>	
  											<td>
  												
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b>New coplet</b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="98%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Titel:
  															</font>
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<input name="portaladmin_title" type="text" size="25"/>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td background="sunspotdemoimg-line_bg.gif" width="1%">
  															<img src="sunspotdemoimg-space.gif" height="20"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%">
  															<img src="sunspotdemoimg-kast_url_u.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="submit" value="Create New coplet"/>
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  														</td>
  													</tr>
  												 	
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  												
  											</td>
  										</tr>
  									</table>
  									</form>
  					</td>
  				</tr>
  			</xsl:when>
  			<xsl:otherwise> <!-- otherwise means state='coplet' -->
  				<tr>
  
  <!--  Menue -->
   					<td bgcolor="#cccccc" valign="top" width="193">
  								<img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  									<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2">
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplets</xsl:variable>
  													<b><a>
  														<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<center>List of coplets</center>
  													</a></b>
  												</font>
  											</td>
  										</tr>
  										<tr>
  											<td bgcolor="#46627A" width="1%">
  												<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  											</td>
  											<td bgcolor="#cccccc">
  												<br/>
  												<font face="Arial, Helvetica, sans-serif" size="2"><b>
  													<xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplets&amp;portaladmin_coplets=save</xsl:variable>
  													<a>
  														<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  														<center>Save</center>
  													</a>
  												</b></font>
  									<font face="Arial, Helvetica, sans-serif" size="1">
                                                                                                                          <p align="center">If you have changed the coplet Profile, you have to accept them by "Change"</p>
  									</font>
  											</td>
  										</tr>
  									</table>
  								</td>
  <!-- /Menue -->
  
  <!-- Content -->
  			                  				<td align="center">
  								</td>
  								<td> <!-- Edit one coplet -->
  												<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  													<tr>
  														<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  													</tr>
  													<xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&amp;portaladmin=coplet&amp;portalcoplet=<xsl:value-of select="coplet/@id"/>&amp;portaladmin_coplets=change</xsl:variable>
  													<form method="post">
  														<xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b><xsl:value-of select="coplet/title"></xsl:value-of></b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Title
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<input name="portaladmin_title" type="text" size="40">
  																<xsl:attribute name="value"><xsl:value-of select="coplet/title"></xsl:value-of></xsl:attribute>
  															</input>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Resource
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<input name="portaladmin_resource" type="text" size="40" value="{coplet/resource/@uri}"/>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Transformation
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  														</td>
  													</tr>
  													<xsl:for-each select="coplet/transformation/stylesheet">
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-kast.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	&#160;
  																</font>
  															</td>
  															<td width="97%">
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="text" size="30">
  																	<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  																	<xsl:attribute name="name">portaladmin_xsl_<xsl:value-of select="position()"/></xsl:attribute>
  																</input>
  																<input type="checkbox">
  																	<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  																	<xsl:attribute name="name">portaladmin_delxsl_<xsl:value-of select="position()"/></xsl:attribute>
  																</input>delete
  																</font>
  															</td>
  														</tr>
  													</xsl:for-each>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																&#160;
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<font face="Arial, Helvetica, sans-serif" size="2">
  															<input type="checkbox" name="portaladmin_newxsl" value="true"/>Add Transformation
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Active
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_active">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/active)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/active)='false'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="30%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Mandatory
  															</font>
  														</td>
  														<td width="60%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_mand">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/mandatory)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/mandatory)='false'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Sizable
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_sizable">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/sizable)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/sizable)='false'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Evaluates Resizable
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_handsize">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/handlesSizable)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/handlesSizable)='false' or not(coplet/configuration/handlesSizable)">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Evaluates Parameters
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_handpar">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/handlesParameters)='true' or not(coplet/configuration/handlesParameters)">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/handlesParameters)='false'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Own Configuration
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_customizable">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/customizable)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/customizable)='false' or not(coplet/configuration/customizable)">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													<xsl:if test="normalize-space(coplet/configuration/customizable)='true'">
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Configuration Resource
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<input name="portaladmin_cust" type="text" size="40" value="{coplet/customization/@uri}"/>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																Persistent Configuration
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<select name="portaladmin_persistent">
  																<option value="true"><xsl:if test="normalize-space(coplet/configuration/persistent)='true'">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>Yes
  																</option>
  																<option value="false"><xsl:if test="normalize-space(coplet/configuration/persistent)='false' or not(coplet/configuration/persistent)">
  																	<xsl:attribute name="selected">true</xsl:attribute>
  																	</xsl:if>No
  																</option>
  															</select>
  														</td>
  													</tr>
  													</xsl:if>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td background="sunspotdemoimg-line_bg.gif" width="1%">
  															<img src="sunspotdemoimg-space.gif" height="20"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%">
  															<img src="sunspotdemoimg-kast_url_u.gif"/>
  														</td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="submit" name="portaladmin_submit" value="Change"/>
  															</font>
  														</td>
  														<td width="97%">
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  														</td>
  													</tr>
  												 	</form>
  													<tr>
  														<td colspan="4">
  															<img src="sunspotdemoimg-space.gif" height="10"/>
  														</td>
  													</tr>
  												</table>
  									</td>
  							</tr>
  						</xsl:otherwise>
  					</xsl:choose>
  												
  <!-- /Content -->
  
  <!-- Bottom -->		
  							<tr>   
  		          						<td bgcolor="#AAB9BF" noWrap="" colspan="3">
  									<img src="sunspotdemoimg-space.gif" height="8"/>
  								</td>
  							</tr>
  <!-- /Bottom -->
  
  						</tbody>
  					</table>
  				</td>
  			</tr>
  		</tbody></table>
  	</body>
  </html>
  </xsl:template>
  
  <!-- /Portal Administration -->
  
  <!-- Portal-Layout -->
  
  <xsl:template match="layout-profile">
  <form method="post">
  	<xsl:attribute name="action"><xsl:value-of select="normalize-space(ancestor::portalconf/configuration/uri)"/></xsl:attribute>
  	<font face="Arial, Helvetica, sans-serif" size="3">
  	<xsl:attribute name="color">
  		<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  	</xsl:attribute>
  		<b>Portal-Layout</b>
  	</font>
  	<table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  		<tr>
  			<td>
  				<table border="0" width="100%" cellspacing="0" cellpadding="4">
  				<xsl:attribute name="bgcolor">
  					<xsl:value-of select="portal/layouts/layout/background/color"/>
  				</xsl:attribute>
  					<tbody>
  						<tr>
  							<td colspan="3">
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									<b>Colors</b>
  								</font>
  							</td>
  						</tr>
  						<tr>	
  							<td colspan="3">
  								<xsl:apply-templates select="portal/layouts/layout[not(@*)]"/>
  							</td>
  						</tr>
  						<tr>
  							<td width="20%">
  									<img src="sunspotdemoimg-space.gif"/>
  									<xsl:apply-templates select="portal/header"/>
  								</td>
  							<td width="80%" valign="bottom" colspan="2">
  									<img src="sunspotdemoimg-space.gif"/>
  									<xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/header/coplet">
  									<font face="Arial, Helvetica, sans-serif" size="2">
  									<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  									</xsl:attribute>
    									<xsl:variable name="copletid" select="ancestor::portalconf/portal-profile/content/header/coplet/@id"/>
  									<xsl:value-of select="ancestor::portalconf/coplets-profile/coplets/coplet[@id = $copletid]/title"/>
  									</font>
  									</xsl:if>
  								<img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  									<xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/header/coplet">
  									<xsl:variable name="cmd"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=</xsl:variable>
  									<xsl:variable name="copletident"><xsl:value-of select="ancestor::portalconf/portal-profile/content/header/coplet/@id"/>_<xsl:value-of select="ancestor::portalconf/portal-profile/content/header/coplet/@number"/></xsl:variable>
  									<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  									<a>
  										<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  										<img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  									</a>
  									</xsl:if>
  								</td>
  						</tr>
  						<tr>
  							<td>	
  								<img src="sunspotdemoimg-space.gif"/>
  								<xsl:apply-templates select="portal/footer"/>
  							</td>
  							<td>
  								<img src="sunspotdemoimg-space.gif"/>
  								<xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/footer/coplet">
    									<xsl:variable name="copletid" select="ancestor::portalconf/portal-profile/content/footer/coplet/@id"/>
  									<xsl:value-of select="ancestor::portalconf/coplets-profile/coplets/coplet[@id = $copletid]/title"/>
  								</xsl:if>
  							</td>
  							<td>
  								<img src="sunspotdemoimg-space.gif"/>
  									<xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/footer/coplet">
  										<xsl:variable name="cmd">
  											<xsl:value-of select="ancestor::portalconf/configuration/uri"/>
  											&amp;portalcmd=
  										</xsl:variable>
  										<xsl:variable name="copletident">
  											<xsl:value-of select="ancestor::portalconf/portal-profile/content/footer/coplet/@id"/>
  												_
  											<xsl:value-of select="ancestor::portalconf/portal-profile/content/footer/coplet/@number"/>
  										</xsl:variable>
  										<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  										<a>
  											<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  											<img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  										</a>
  									</xsl:if>
  							</td>
  						</tr>
  						<tr>	
  							<td colspan="3">
  								<img src="sunspotdemoimg-space.gif"/>
  							</td>
  						</tr>
  						<tr>	
  							<td colspan="3">
  								<font face="Arial, Helvetica, sans-serif" size="2">
  									<xsl:attribute name="color">
  										<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  									</xsl:attribute>
  									<b>Columns</b><br/>The width of the columns can either be pixels or per cent.
  									    For a per cent value please add the per cent character.
  								</font>
  							</td>
  						</tr>
  						<tr>
  							<td colspan="3">
  								<xsl:apply-templates select="portal/columns"/>
  							</td>
  						</tr>
  						<tr>
  							<td colspan="3">
  								<input type="submit" value="Change Layout"/>
  							</td>
  						</tr>
  					</tbody>			
  				</table>
  			</td>
  		</tr>
  	</table>
  </form>
  </xsl:template>
  
  <!-- /Portal-Layout -->
  
  <!-- Portal-Layout Farben -->
  
  <xsl:template match="layout">
  	<xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  			<tbody>
  				<xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  					<tr>
  						<td width="20%">
  							<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  								<xsl:value-of select="@formdescription"/>:
  							</font>
  						</td>
  						<td>
  							<img src="sunspotdemoimg-space.gif" width="5"/>
  							<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  								<xsl:call-template name="inputfield"/>
  							</font>
  						</td>
  					</tr>
  				</xsl:for-each>
  			</tbody>
  		</table>
  	</xsl:if>
  </xsl:template>
  
  <!-- /Portal-Layout Farben -->
  
  <!-- Portal-Layout Spalten -->
  
  <xsl:template match="columns">
  <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">	
  	<table border="0" width="100%">
  		<tr>
  			<td colspan="2">
  				<font face="Arial, Helvetica, sans-serif" size="2">	
  				<xsl:attribute name="color">
  					<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  				</xsl:attribute>		
  					<xsl:value-of select="@formdescription"/>:
  					<img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  					<xsl:call-template name="inputfield"/>
  				</font>
  			</td>
  		</tr>
  		<tr>
  			<xsl:for-each select="ancestor::portalconf/portal-profile/content/column">
       		            <xsl:sort select="@position"/>
  			<td valign="top">
  				<xsl:attribute name="width"><xsl:value-of select="width"/></xsl:attribute>
  				<table border="0" cellpadding="0" cellspacing="0">
  					<xsl:for-each select="*[@formdescription and @formpath and @formtype]">
  						<tr>
  							<td>
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									<xsl:value-of select="@formdescription"/>:
  								</font>
  							</td>
  							<td colspan="2">
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									<img src="sunspotdemoimg-space.gif" width="20" height="1"/>
  									<xsl:call-template name="inputfield"/>
  								</font>
  							</td>
  						</tr>
  					</xsl:for-each>
  				</table>
  			</td>
  			</xsl:for-each>
  		</tr>
  	</table>
  </xsl:for-each>
  </xsl:template>
  
  <!-- /Portal-Layout Spalten -->
  
  <!-- selected coplets-->
  
  <xsl:template match="portal-profile">
  <font face="Arial, Helvetica, sans-serif" size="3">
  <xsl:attribute name="color">
  	<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  </xsl:attribute>
  	<b>Your coplets</b>
  </font>
  <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  	<tr>
  		<td>
  			<table border="0" width="100%" cellspacing="0" cellpadding="4">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  				<tbody>
  					<tr>
  						<xsl:apply-templates select="content/column"/>
  					</tr>
  				</tbody>
  			</table>
  		</td>
  	</tr>
  </table>
  </xsl:template>
  
  <!-- / selected coplets -->
  
  <!-- selected coplets columns -->
  
  <xsl:template match="column">
  <xsl:variable name="colfirst" select="@position=1"/>
  <xsl:variable name="collast" select="@position=count(ancestor::content/column)"/>
  <xsl:variable name="prevcol" select="(@position)-1"/>
  <xsl:variable name="nextcol" select="(@position)+1"/>
  <td valign="top">
  	<xsl:attribute name="width"><xsl:value-of select="width"/></xsl:attribute>
  	<table border="0" cellspacing="0" cellpadding="0">
  		<tbody>
  			<tr>
  				<td colspan="3">
  					<font face="Arial, Helvetica, sans-serif" size="2">
  					<xsl:attribute name="color">
  						<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  					</xsl:attribute>
  						<b>coplet</b>
  					</font>
  				</td>
  			</tr>
  			<xsl:for-each select="coplets/coplet">
                    		    <xsl:sort select="@position"/>
                                          <xsl:variable name="pos" select="@position"/>
  			    <xsl:variable name="notrowfirst" select="ancestor::coplets/coplet[@position&lt;$pos]"/>
  			    <xsl:variable name="notrowlast" select="ancestor::coplets/coplet[@position&gt;$pos]"/>
  			    <xsl:variable name="cmd"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=</xsl:variable>
  				<xsl:variable name="copletid" select="@id"/>
  				<xsl:variable name="copletident"><xsl:value-of select="@id"/>_<xsl:value-of select="@number"/></xsl:variable>
  				<xsl:variable name="copletconf" select="ancestor::portalconf/coplets-profile/coplets/coplet[@id=$copletid]"/>
  				<tr valign="top">
  					<td>
  						<xsl:if test="not($colfirst)">
  							<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>move_<xsl:value-of select="$copletident"/>_<xsl:value-of select="$prevcol"/></xsl:variable>
  							<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-left.gif" border="0" alt="Move to left"/></a>
  						</xsl:if>
  						<xsl:if test="not($collast)">
  							<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>move_<xsl:value-of select="$copletident"/>_<xsl:value-of select="$nextcol"/></xsl:variable>
  							<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-right.gif" border="0" alt="Move to right"/></a>
  						</xsl:if>
  						<xsl:if test="$notrowfirst">
  						    <xsl:for-each select="ancestor::coplets/coplet[@position&lt;$pos]">
                                      			            <xsl:sort select="@position" order="descending"/>
  				                                                <xsl:if test="position()=1">
  									<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>row_<xsl:value-of select="$copletident"/>_<xsl:value-of select="@position"/></xsl:variable>
  									<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-up.gif" border="0" alt="Move up"/></a>
  								</xsl:if>
  				                            </xsl:for-each>
  						</xsl:if>
  						<xsl:if test="$notrowlast">
  						    <xsl:for-each select="ancestor::coplets/coplet[@position&gt;$pos]">
                                      			            <xsl:sort select="@position"/>
  				                                                <xsl:if test="position()=1">
  									<xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>row_<xsl:value-of select="$copletident"/>_<xsl:value-of select="@position"/></xsl:variable>
  									<a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-down.gif" border="0" alt="Move down"/></a>
  								</xsl:if>
  				                            </xsl:for-each>
  						</xsl:if>
  					</td>
  					<td align="left">
  						<img src="sunspotdemoimg-space.gif" width="5" height="1"/>
  						<font face="Arial, Helvetica, sans-serif" size="2">
  						<xsl:attribute name="color">
  							<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  						</xsl:attribute>
  							<xsl:value-of select="$copletconf/title"/>
  						</font>
  						<img src="sunspotdemoimg-space.gif" width="5" height="1"/>
  					</td>
  					<td align="right">
  						<!-- minimize/maximize -->
  						<xsl:variable name="linkurlmax"><xsl:value-of select="$cmd"/>minimize_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:variable name="linkurlmin"><xsl:value-of select="$cmd"/>maximize_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:if test="$copletconf/configuration/sizable='true' and status/size/@formpath">
  							<a>
  								<xsl:choose>
  									<xsl:when test="status/size='max'">
  										<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmax), ' ', '')"/></xsl:attribute>
  										<img src="sunspotdemoimg-minimize.gif" border="0" alt="Minimize"/>
  									</xsl:when>
  									<xsl:otherwise>
  										<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmin), ' ', '')"/></xsl:attribute>
  										<img src="sunspotdemoimg-maximize.gif" border="0" alt="Maximize"/>
  									</xsl:otherwise>
  								</xsl:choose>
  							</a>
  						</xsl:if>
  						<!-- show/ hide -->
  						<xsl:variable name="linkurlshow"><xsl:value-of select="$cmd"/>show_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:variable name="linkurlhide"><xsl:value-of select="$cmd"/>hide_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:choose>
  							<xsl:when test="status/visible/@formpath and $copletconf/configuration/mandatory='false'">
  								<a>
  									<xsl:choose>
  										<xsl:when test="status/visible='true'">
  											<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlhide), ' ', '')"/></xsl:attribute>
  											<img src="sunspotdemoimg-hide.gif" border="0" alt="Hide"/>
  										</xsl:when>
  										<xsl:otherwise>
  											<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlshow), ' ', '')"/></xsl:attribute>
  											<img src="sunspotdemoimg-show.gif" border="0" alt="Show"/>
  										</xsl:otherwise>
  									</xsl:choose>
  								</a>
  							</xsl:when>
  						</xsl:choose>
  						<!-- mandatory/delete -->
  						<xsl:variable name="linkurlmand"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  						<xsl:if test="$copletconf/configuration/mandatory='false'">
  							<a>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmand), ' ', '')"/></xsl:attribute>
  								<img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  							</a>
  						</xsl:if>
  					</td>
  				</tr>
  			</xsl:for-each>
  		</tbody>
  	</table>
  </td>
  </xsl:template>
  
  <!-- /selected coplets columns -->
  
  <!-- All coplets-->
  
  <xsl:template match="coplets-profile">	
  <font face="Arial, Helvetica, sans-serif" size="3">
  <xsl:attribute name="color">
  	<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  </xsl:attribute>
  	<b>All coplets</b>
  </font>
  <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  	<tr>
  		<td>
  			<table border="0" width="100%" cellspacing="0" cellpadding="4">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  				<tbody>
  					<xsl:if test="ancestor::portaladminconf">
  						<xsl:for-each select="coplets/coplet[configuration/active='true']">
  							<tr>
  							<td>
  							<font face="Arial, Helvetica, sans-serif" size="2">
  							<xsl:attribute name="color">
  								<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  							</xsl:attribute>
  								<xsl:value-of select="title"/>
  							</font>
  						</td>
  						<td>
  							<xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=new_<xsl:value-of select="@id"/>_1</xsl:variable>
  							<a>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									Add
  								</font>
  							</a>
  						</td>	
  						<td>
  							<xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=new_<xsl:value-of select="@id"/>_header</xsl:variable>
  							<a>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									As Header
  								</font>
  							</a>
  						</td>	
  						<td>
  							<xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=new_<xsl:value-of select="@id"/>_footer</xsl:variable>
  							<a>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									As Footer
  								</font>
  							</a>
  						</td>	
  						</tr>
  					</xsl:for-each>
  				</xsl:if>
  				<xsl:if test="not(ancestor::portaladminconf)">
  					<xsl:for-each select="coplets/coplet[configuration/active='true' and configuration/mandatory='false']">
  						<tr>
  						<td>
  							<font face="Arial, Helvetica, sans-serif" size="2">
  							<xsl:attribute name="color">
  								<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  							</xsl:attribute>
  								<xsl:value-of select="title"/>
  							</font>
  						</td>
  						<td>
  							<xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&amp;portalcmd=new_<xsl:value-of select="@id"/>_1</xsl:variable>
  							<a>
  								<xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  								<font face="Arial, Helvetica, sans-serif" size="2">
  								<xsl:attribute name="color">
  									<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  								</xsl:attribute>
  									Add
  								</font>
  							</a>
  						</td>	
  						</tr>
  					</xsl:for-each>
  				</xsl:if>
  				
  				</tbody>
  			</table>
  		</td>
  	</tr>
  </table>
  </xsl:template>
  
  <!-- /All coplets -->
  
  <xsl:template name="admin_coplets-profile">	
  <form method="post">
  <xsl:attribute name="action">
  	<xsl:value-of select="normalize-space(ancestor::portalconf/configuration/uri)"/>
  </xsl:attribute>
  <font face="Arial, Helvetica, sans-serif" size="3">
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute>
  <b>coplets Configuration</b></font>
  <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  	<tr>
  		<td>
  			<table border="0" width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="4">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  				<tbody>
  				<xsl:for-each select="coplets/coplet">
  					<tr>
  						<td colspan="2">
  							<font face="Arial, Helvetica, sans-serif" size="2">
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute><b>coplet: <xsl:value-of select="title"/></b></font>
  						</td>
  					</tr>
  					<xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">	
  					<tr>
  						<td width="20%">
  							<font face="Arial, Helvetica, sans-serif" size="2">	
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute>		
  							<xsl:value-of select="@formdescription"/>:
  							</font>
  						</td>
  						<td>
  						<font face="Arial, Helvetica, sans-serif" size="2">
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute>
  						<xsl:call-template name="inputfield"/>
  						</font>
  						</td>
  					</tr>
  					</xsl:for-each>
  				</xsl:for-each>
  				<tr><td><input type="submit" value="Change coplets"/></td></tr>
  				</tbody>
  			</table>
  		</td>
  	</tr>
  	
  </table>
  </form>
  </xsl:template>
  
  <!-- the header -->
  
  <xsl:template match="header">
  	<xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  			<xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  			<tr>
  				<td width="20%">
  					<font face="Arial, Helvetica, sans-serif" size="2">
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute>
  							<xsl:value-of select="@formdescription"/>:
  					<img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  					<xsl:call-template name="inputfield"/>
  					</font>
  				</td>
  			</tr>
  			</xsl:for-each>
  		</table>
  	</xsl:if>
  </xsl:template>
  
  <xsl:template match="footer">
  	<xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  		<table border="0" cellPadding="0" cellSpacing="0" width="100%">
  			<xsl:attribute name="bgcolor">
  				<xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  			</xsl:attribute>
  			<xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  			<tr>
  				<td width="20%">
  					<font face="Arial, Helvetica, sans-serif" size="2">
  <xsl:attribute name="color">
  <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  		</xsl:attribute>
  							<xsl:value-of select="@formdescription"/>:
  					<img src="sunspotdemoimg-space.gif" width="12" height="1"/>
  					<xsl:call-template name="inputfield"/>
  					</font>
  				</td>
  			</tr>
  			</xsl:for-each>
  		</table>
  	</xsl:if>
  </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunLet_MoreoverDotCom.xsl
  
  Index: sunLet_MoreoverDotCom.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunLet_MoreoverDotCom.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  -->
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
  
  <xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
  
  <xsl:template match="moreovernews">
  <!-- Stylesheet to be used inside a coplet. Generates HTML from an XML-feed from http://w.moreover.com/ -->
  <table>
  	<xsl:apply-templates select ="article"/>
  </table>
  </xsl:template>
  
  <xsl:template match="article">
  			<xsl:if test="position() &lt; 6">
  				<tr bgcolor="#ffffff"><td><font face="Arial, Helvetica, sans-serif">
      			<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
  				<font size="-1" color="#333333"><b><xsl:value-of select="headline_text"/></b></font></a><br/>
  				<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="document_url"/></xsl:attribute> 
      			<font size="-2" color="#46627A"><xsl:value-of select = "source"/></font></a>
  				<font size="-2" color="#46627A">&#160;&#160;<xsl:value-of select="harvest_time"/></font>
      			</font></td></tr>
  				<tr bgcolor="#ffffff"><td bgcolor="#ffffff" height="5"></td></tr>
  			</xsl:if>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunLet_sundnNews.xsl
  
  Index: sunLet_sundnNews.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: sunLet_sundnNews.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
  -->
  
  <xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
  
  <xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
  
  <xsl:template match="news"><!-- Stylesheet to be used inside a coplet. Generates HTML from an XML-feed from http://w.moreover.com/ -->
  
  	<table>
  		<xsl:apply-templates select ="article">
  		</xsl:apply-templates>
  	</table>
  </xsl:template>
  
  <xsl:template match="article">
  			<xsl:if test="position() &lt; 6">
  				<tr bgcolor="#ffffff"><td><font face="Arial, Helvetica, sans-serif">
      			<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
  				<font size="-1" color="#333333"><b><xsl:value-of select="title"/></b></font></a><br/>
  				<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="authorlink"/></xsl:attribute> 
      			<font size="-2" color="#46627A"><xsl:value-of select = "author"/></font></a>
  				<font size="-2" color="#46627A">&#160;&#160;<xsl:value-of select="date"/></font>
      			</font></td></tr>
  				<tr bgcolor="#ffffff"><td bgcolor="#ffffff" height="5"></td></tr>
  			</xsl:if>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunletconf.xsl
  
  Index: sunletconf.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunletconf.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
   Description: The configuration page of a coplet
  
  -->
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="page">
  	<xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="picture">
  	<img>
  		<xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
  	</img>
  </xsl:template>
  
  
  <xsl:template match="form">
  	<form>
  		<xsl:attribute name="method"><xsl:value-of select="@method"/></xsl:attribute>
  		<xsl:attribute name="action"><xsl:value-of select="@action"/></xsl:attribute>
  		<table><tbody>
  			<xsl:apply-templates select="inputxml"/>
  			<tr><td colspan="2" align="middle">
  			<xsl:apply-templates select="input"/>
  			</td></tr>
  		</tbody></table>
  	</form>
  </xsl:template>
  
  <xsl:template match="inputxml">
  	<tr>
  		<td><xsl:value-of select="@name"/>:&#160;</td>
  		<td>
  			<xsl:choose>
  				<xsl:when test="@name='Newsfeed'">
  					<select name="Newsfeed">
  						<option value="usa">
  							<xsl:if test="normalize-space(.) = 'usa'">
  								<xsl:attribute name="selected">true</xsl:attribute>
  							</xsl:if>
  							USA
  						</option>
  						<option value="entertainmentgeneral">
  							<xsl:if test="normalize-space(.) = 'entertainmentgeneral'">
  								<xsl:attribute name="selected">true</xsl:attribute>
  							</xsl:if>
  							Entertainment
  						</option>
  						<option value="foodanddrink">
  							<xsl:if test="normalize-space(.) = 'foodanddrink'">
  								<xsl:attribute name="selected">true</xsl:attribute>
  							</xsl:if>
  							Food &amp; Drink
  						</option>
  					</select>
  				</xsl:when>
  				<xsl:otherwise>
  					<input>
  						<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
  						<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  						<xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
  					</input>
  				</xsl:otherwise>
  			</xsl:choose>
  		</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>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunrise-user.xsl
  
  Index: sunrise-user.xsl
  ===================================================================
  <?xml version="1.0"?>
  <!-- $Id: sunrise-user.xsl,v 1.1 2002/06/03 11:45:55 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>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunriseconfHTML.xsl
  
  Index: sunriseconfHTML.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: sunriseconfHTML.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
   Description: Portal User configuration to HTML. This stylesheet is
                used for the administrator when he manages the users
  
  -->
  
  <xsl:template match="configuration">
  	<xsl:variable name="role" select="normalize-space(role)"/>
  
  	<html>
  		<head>
  			<title>Portal User Management</title>
  		</head>
  		<body text="#0B2A51" link="#0B2A51" vlink="#666666" bgColor="#cccccc">
  		<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody>
  		    	<tr>
  			        	<td>
  			            	<table border="0" cellPadding="0" cellSpacing="2" height="100%" width="100%"><tbody>
  <!-- Start Header -->				<tr>
  			                  	<td bgcolor="#AAB9BF" noWrap="" colspan="3">
  								 <img src="sunspotdemoimg-space.gif" height="5"/>
  							</td>
  						</tr>
                  					<tr>
  			                  			<td bgcolor="#AAB9BF" noWrap="">	
  								<img src="sunspotdemoimg-logo.jpg"/>
  		                  				</td>
                    						<td bgcolor="#AAB9BF" align="center" valign="bottom" colspan="2">
                      							<font face="Arial, Helvetica, sans-serif" size="6" color="#46627A">
  									<b>Portal User Management</b>
  								</font>
                    						</td>
  			              		</tr>
  	                				<tr>
                    						<td noWrap="" width="10%" bgcolor="#cccccc">
  								<img src="sunspotdemoimg-space.gif" height="10"/>
                    						</td>
                    						<td width="90%" bgcolor="#cccccc" colspan="2">
  								<img src="sunspotdemoimg-space.gif"/>
  							</td>
                  					</tr>
  <!-- Ende Header -->
  <!-- Start Content -->
  						<tr>
                    						<td bgcolor="#46627a">
  								<img src="sunspotdemoimg-space.gif"/>
  							</td>
  							<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
                    						<td align="center"><img src="sunspotdemoimg-space.gif" height="10"/>
  <!-- add new role -->						<xsl:if test="menue/addrole">
  									<form method="post">
  										<xsl:attribute name="action"><xsl:value-of select="normalize-space(uri)"/></xsl:attribute>
  										<input type="hidden" value="addrole" name="authstate"/>	
  										<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  											<tr>	
  												<td>
  													<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" width="100%">
  														<tr>
  															<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  															<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<input type="text" name="authrole" size="20"/>
  																</font>
  															</td>
  															<td width="97%">
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<input type="submit" value="Create New Role"/>
  																</font>
  															</td>
  														</tr>
  														<tr>
  															<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  														</tr>
  													</table>
  												</td>
  											</tr>
  										</table>
  									</form>
  								</xsl:if>
  <!-- delete a role -->						<xsl:if test="menue/delrole">
  									<form method="post">
  										<xsl:attribute name="action"><xsl:value-of select="normalize-space(uri)"/></xsl:attribute>
  										<input type="hidden" value="delrole" name="authstate"/>	
  										<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  											<tr>	
  												<td>
  													<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" width="100%">
  														<tr>
  															<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  															<td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<select name="authrole">
  																		<xsl:for-each select="roles/role">
  																			<option>
  																				<xsl:attribute name="value">
  																					<xsl:value-of select="normalize-space(.)"/>
  																				</xsl:attribute>
  																				<xsl:value-of select="normalize-space(.)"/>
  																			</option>
  																		</xsl:for-each>
  																	</select>
  																</font>
  																<img src="sunspotdemoimg-space.gif" width="90" height="1"/>
  															</td>
  															<td width="97%">
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<input type="submit" value="Delete Role"/>
  																</font>
  															</td>
  														</tr>
  														<tr>
  															<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  														</tr>
  													</table>
  												</td>
  											</tr>
  										</table>
  									</form>
  								</xsl:if>
  <!-- User: select role -->						<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  									<tr>	
  										<td>
  											<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" width="100%">
  												<tr>
  													<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  												</tr>
  												<form method="post">
  													<xsl:attribute name="action">
  														<xsl:value-of select="normalize-space(uri)"/>
  													</xsl:attribute>
  													<input type="hidden" value="selrole" name="authstate"/>
  													<tr>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif"/>
  														</td>
  														<td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  														<td width="1%" colspan="2">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<b>User</b>
  															</font>
  														</td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-space.gif"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif">
  															<img src="sunspotdemoimg-kast.gif"/></td>
  														<td width="1%">
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<select name="authrole">
  																	<xsl:for-each select="roles/role">
  																		<option>
  																			<xsl:attribute name="value">
  																				<xsl:value-of select="normalize-space(.)"/>
  																			</xsl:attribute>
      	 						            											<xsl:if test="normalize-space(.)=$role">
  																				<xsl:attribute name="selected">
  																					true
  																				</xsl:attribute>
  																			</xsl:if>
  																			<xsl:value-of select="normalize-space(.)"/>
  																		</option>
  																	</xsl:for-each>
  																</select>
  															</font>
  															<img src="sunspotdemoimg-space.gif" width="90" height="1"/>
  														</td>
  														<td>
  															<img src="sunspotdemoimg-space.gif" width="10"/>
  															<font face="Arial, Helvetica, sans-serif" size="2">
  																<input type="submit" value="Choose Role"/>
  															</font>
  														</td>
  													</tr>
  												</form>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif" valign="bottom">
  														<img src="sunspotdemoimg-line_end.gif"/>
  													</td>
  													<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  												</tr>	
  <!-- User: select user or new user -->
  												<xsl:if test="role and not(user)">
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif"><img src="sunspotdemoimg-kast.gif"/></td>
  														<td width="1%">
  															<img src="sunspotdemoimg-space.gif"/>	
  														</td>
  														<form method="post">
  															<xsl:attribute name="action">
  																<xsl:value-of select="normalize-space(uri)"/>
  															</xsl:attribute>
  															<input type="hidden" value="adduser" name="authstate"/>
  												                                    <input type="hidden" name="authrole">
  																<xsl:attribute name="value">
  																	<xsl:value-of select="$role"/>
  																</xsl:attribute>
  															</input>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<input type="submit" value="Create New User"/>	
  															</td>
  														</form>
  													</tr>
  													<tr>
  														<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  														<td width="1%" background="sunspotdemoimg-line_bg.gif" valign="bottom">
  															<img src="sunspotdemoimg-line_end.gif"/>
  														</td>
  														<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  													</tr>
  													<xsl:if test="users/user/ID">
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%">
  																<img src="sunspotdemoimg-kast_u.gif"/>
  															</td>
  															<form method="post">
  																<xsl:attribute name="action">
  																	<xsl:value-of select="normalize-space(uri)"/>
  																</xsl:attribute>
  																<input type="hidden" value="seluser" name="authstate"/>
  												                                                 <input type="hidden" name="authrole">
  																	<xsl:attribute name="value">
  																		<xsl:value-of select="$role"/>
  																	</xsl:attribute>
  																</input>
  																<td width="1%">
  																	<select name="authid">
  																		<xsl:for-each select="users/user/ID">
  																			<option>
  																				<xsl:attribute name="value">
  																					<xsl:value-of select="normalize-space(.)"/>
  																				</xsl:attribute>
  																				<xsl:if test="normalize-space(.)=$role">
  																					<xsl:attribute name="selected">
  																						true
  																					</xsl:attribute>
  																				</xsl:if>
  																				<xsl:value-of select="normalize-space(.)"/>
  																			</option>
  																		</xsl:for-each>
  																	</select>	
  																</td>
  																<td>
  																	<img src="sunspotdemoimg-space.gif" width="10"/>
  																	<input type="submit" value="Choose User"/>	
  																</td>
  															</form>
  														</tr>
  													</xsl:if>
  												</xsl:if>
  												<xsl:if test="user">	
  													<xsl:variable name="user" select="normalize-space(user)"/>
  													<form method="post">
  					 									<xsl:attribute name="action"><xsl:value-of select="normalize-space(uri)"/></xsl:attribute>
  														<input type="hidden" value="chguser" name="authstate"/>
  														<input type="hidden" name="authuser">
  															<xsl:choose>
  																<xsl:when test="$user='error'">
  																	<xsl:attribute name="value">new</xsl:attribute>
  																</xsl:when>
  																<xsl:otherwise>
  																	<xsl:attribute name="value">
  																		<xsl:value-of select="normalize-space(user)"/>
  																	</xsl:attribute>
  																</xsl:otherwise>
  															</xsl:choose>
  														</input>
  														<input type="hidden" name="autholdrole" value="{$role}"/>
  														<input type="hidden" name="autholdpassword" value="{normalize-space(uservalues/data/password)}"/>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-kast.gif"/>
  															</td>
  															<td width="1%" colspan="2">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<b>User Information</b>
  																</font>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Title:
  																</font>
  															</td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<select name="title">
  																	<option>
  																		<xsl:if test="normalize-space(uservalues/data/title)='Mr.'">
  																			<xsl:attribute name="selected">
  																				true
  																			</xsl:attribute>
  																		</xsl:if>
                                                         														Mr.
  																	</option>
  																	<option>
  																		<xsl:if test="normalize-space(uservalues/data/title)='Mrs.'">
  																			<xsl:attribute name="selected">
  																				true
  																			</xsl:attribute>
  																		</xsl:if>
                                                           														Mrs.
  																	</option>
  																</select>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Firstname:
  																</font>
  															</td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<xsl:choose>
  																	<xsl:when test="$user='new'">
  																		<input type="text" name="firstname" value="??"/>
  																	</xsl:when>
  																	<xsl:when test="$user='error'">
  																		<input type="text" name="firstname" value="{uservalues/data/firstname}"/> 
  																	</xsl:when>
  																	<xsl:otherwise>
  																		<input type="text" name="firstname" value="{uservalues/data/firstname}"/>
  																	</xsl:otherwise>
  																</xsl:choose>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Lastname:
  																</font>
  															</td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<xsl:choose>
  																	<xsl:when test="$user='new'">
  																		<input type="text" name="lastname" value="??"/>
  																	</xsl:when>
  																	<xsl:otherwise>
  																		<input type="text" name="lastname">
  																			<xsl:attribute name="value">
  																				<xsl:value-of select="uservalues/data/lastname"/>
  																			</xsl:attribute>
  																		</input>
  																	</xsl:otherwise>
  																</xsl:choose>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Login:
  																</font>
  															</td>
  															<td>
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	<img src="sunspotdemoimg-space.gif" width="10"/>
  																	<xsl:choose>
  																		<xsl:when test="$user='new'">
  																			<input type="text" name="authid" value="??"/>
  																		</xsl:when>
  																		<xsl:when test="$user='error'">
  																			<input type="text" name="authid" value="{uservalues/data/ID}"/>
  																		</xsl:when>
  																		<xsl:otherwise>
  																			<xsl:value-of select="uservalues/data/ID"/>
  																			<input type="hidden" name="authid">
  																				<xsl:attribute name="value">
  																					<xsl:value-of select="normalize-space(uservalues/data/ID)"/>
  																				</xsl:attribute>
  																			</input>
  																		</xsl:otherwise>
  																	</xsl:choose>
  																</font>
  															</td>
  														</tr>
  														<xsl:if test="$user='error'">
  															<tr>
  																<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  																<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																	<img src="sunspotdemoimg-space.gif"/>
  																</td>
  																<td width="1%">
  																	<font face="Arial, Helvetica, sans-serif" size="2">&#160;</font>
  																</td>
  																<td>
  																	<font face="Arial, Helvetica, sans-serif" size="2" color="ff1111">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																		User already exists
  																	</font>
  																</td>
  															</tr>
  														</xsl:if>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Password:
  																</font>
  															</td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<xsl:choose>
  																	<xsl:when test="$user='new'">
  																		<input type="password" name="password" value=""/>
  																	</xsl:when>
  																	<xsl:otherwise>
  																		<input type="password" name="password" value="{uservalues/data/password}"/>
  																	</xsl:otherwise>
  																</xsl:choose>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-space.gif"/>
  															</td>
  															<td width="1%">
  																<font face="Arial, Helvetica, sans-serif" size="2">
  																	Role:
  																</font>
  															</td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<select name="authrole">
  																	<xsl:for-each select="roles/role">
  																		<option>
  																			<xsl:attribute name="value">
  																				<xsl:value-of select="normalize-space(.)"/>
  																			</xsl:attribute>
  																			<xsl:if test="normalize-space(.)=$role">
  																				<xsl:attribute name="selected">
  																					true
  																				</xsl:attribute>
  																			</xsl:if>
  																			<xsl:value-of select="normalize-space(.)"/>
  																		</option>
  																	</xsl:for-each>
  																</select>
  															</td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif" valign="bottom">
  																<img src="sunspotdemoimg-line_end.gif"/>
  															</td>
  															<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																<img src="sunspotdemoimg-kast_url_u.gif"/>
  															</td>
  															<xsl:choose>
  																<xsl:when test="not($user='new') and not($user='error')">
  																	<td width="1%">
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			<input type="checkbox" value="true" name="authdeluser"/>	
  																		</font>			
  																	</td>
  																	<td width="97%">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																		<font face="Arial, Helvetica, sans-serif" size="2">
  																			Delete User
  																		</font>
  																	</td>
  																</xsl:when>
  																<xsl:otherwise>
  																	<td width="1%">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>		
  																	</td>
  																	<td width="97%">
  																		<img src="sunspotdemoimg-space.gif" width="10"/>
  																	</td>
  																</xsl:otherwise>
  															</xsl:choose>
  														</tr>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%" background="sunspotdemoimg-line_bg.gif" valign="bottom">
  																<img src="sunspotdemoimg-line_end.gif"/>
  															</td>
  															<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  														</tr>
  														<xsl:if test="addeduser">	
  															<tr>
  																<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  																<td width="1%" background="sunspotdemoimg-line_bg.gif">
  																	<img src="sunspotdemoimg-kast.gif"/>
  																</td>
  																<td width="1%" colspan="2">
  																	<font face="Arial, Helvetica, sans-serif" size="2">
  																		User <xsl:value-of select="normalize-space(addeduser)"/> created.
  																	</font>
  																</td>
  															</tr>
  														</xsl:if>
  														<tr>
  															<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  															<td width="1%">
  																<img src="sunspotdemoimg-kast_url_u.gif"/>
  															</td>
  															<td width="1%"><img src="sunspotdemoimg-space.gif" width="10"/></td>
  															<td>
  																<img src="sunspotdemoimg-space.gif" width="10"/>
  																<xsl:choose>
  																	<xsl:when test="$user='new' or $user='error'">
  																		<input type="submit" name="Create New" value="Create New"/>
  																	</xsl:when>
  																	<xsl:otherwise>
  																		<input type="submit" name="Change" value="Change"/>
  																	</xsl:otherwise>
  																</xsl:choose>
  															</td>
  														</tr>
  													</form>
  												</xsl:if>
  												<tr>
  													<td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  												</tr>
  											</table>
  										</td>
  									</tr>
  								</table>
  								<img src="sunspotdemoimg-space.gif" height="20"/>
  							</td>
  			                		</tr>
  <!-- Ende Content -->
  
  <!-- Start Bottom -->
  						<tr>   
            							<td bgcolor="#AAB9BF" noWrap="" colspan="3">
  								<img src="sunspotdemoimg-space.gif" height="8"/>
  							</td>
  						</tr>
  <!-- Ende Bottom -->
  
  					</tbody></table>
  				</td>
  			</tr>
  		</tbody></table>
  	</body>
  </html>
  </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/portal/styles/sunriseeditHTML.xsl
  
  Index: sunriseeditHTML.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- $Id: sunriseeditHTML.xsl,v 1.1 2002/06/03 11:45:55 cziegeler Exp $ 
  
   Description: Portal User Management to HTML. This stylesheet is used
                if the user changes his own information.
  
  -->
  
  <xsl:template match="configuration">
  	<xsl:variable name="role" select="normalize-space(role)"/>
  
  <html>
  <head>
      <title>Portal User Managemenet</title>
  </head>
  <body text="#0B2A51" link="#0B2A51" vlink="#666666" bgColor="#ffffff">
  <table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
  	<tr>
  
  <!-- menue -->
  		<td height="100%" noWrap="" width="193" valign="top" bgcolor="#cccccc">
  		<img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  			<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%">
  				<tr>
  					<td>
  						<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  							<tr>
  								<td bgcolor="#46627A" width="1%">
  									<img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  								</td>
  								<td bgcolor="#cccccc">
  									<br/>
  									<font face="Arial, Helvetica, sans-serif" size="2">
  										<b><a target="_top" href="sunspotdemo-portal">
  											<blockquote>Your Portal</blockquote>
  										</a></b>
  									</font>
  								</td>
  							</tr>
  						</table>
  					</td>
  				</tr>
  			</table>
  		</td>
  <!-- /menue -->
  		<td>
  <!-- content -->
              		<table border="0" cellPadding="0" cellSpacing="2" height="100%" width="100%">
                			<tbody>
  					<tr>
  						<td><img src="sunspotdemoimg-space.gif" width="10"/></td>
                    				<td valign="top"><img src="sunspotdemoimg-space.gif" height="10"/><br/>
                                                  	<table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A">
  								<tr>
  									<td>
  										<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">
  											<tr>
  												<td colspan="5"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  											</tr>
  											<xsl:variable name="user" select="normalize-space(user)"/>
  											<xsl:variable name="linkurl"><xsl:value-of select="normalize-space(uri)"/><xsl:value-of select="urlrewrite"/></xsl:variable>
  											<form method="post" action="{translate(normalize-space($linkurl), ' ', '')}">
  												<input type="hidden" name="authstate" value="chguser"/>
  					                            	        	<input type="hidden" name="authrole" value="{$role}"/>
  												<input type="hidden" name="authuser" value="{normalize-space(user)}"/>
  												<input type="hidden" name="autholdrole" value="{$role}"/>
  												<input type="hidden" name="autholdpassword" value="{normalize-space(uservalues/data/password)}"/>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%">
  														<img src="sunspotdemoimg-kast_o.gif"/>
  													</td>
  													<td width="1%" colspan="2">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															<b>User Information</b>
  														</font>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif">
  														<img src="sunspotdemoimg-space.gif"/>
  													</td>
  													<td width="1%">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															Title:
  														</font>
  													</td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<select name="title">
  															<option><xsl:if test="normalize-space(uservalues/data/title)='Mr.'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>Mr.</option>
  															<option><xsl:if test="normalize-space(uservalues/data/title)='Mrs.'"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>Mrs.</option>
  														</select>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif">
  														<img src="sunspotdemoimg-space.gif"/>
  													</td>
  													<td width="1%">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															Firstname:
  														</font>
  													</td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<input size="35" type="text" name="firstname" value="{normalize-space(uservalues/data/firstname)}"/>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif">
  														<img src="sunspotdemoimg-space.gif"/>
  													</td>
  													<td width="1%">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															Lastname:
  														</font>
  													</td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<input size="35" type="text" name="lastname" value="{normalize-space(uservalues/data/lastname)}"/>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif">
  														<img src="sunspotdemoimg-space.gif"/>
  													</td>
  													<td width="1%">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															Login:
  														</font>
  													</td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															<xsl:value-of select="uservalues/data/ID"/>
  															<input type="hidden" name="authid" value="{normalize-space(uservalues/data/ID)}"/>
  														</font>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif">
  														<img src="sunspotdemoimg-space.gif"/>
  													</td>
  													<td width="1%">
  														<font face="Arial, Helvetica, sans-serif" size="2">
  															Password:
  														</font>
  													</td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<input size="35" type="password" name="password" value="{normalize-space(uservalues/data/password)}"/>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%" background="sunspotdemoimg-line_bg.gif" valign="bottom">
  														<img src="sunspotdemoimg-line_end.gif"/>
  													</td>
  													<td colspan="2"><img src="sunspotdemoimg-space.gif" height="20"/></td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												<tr>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  													<td width="1%">
  														<img src="sunspotdemoimg-kast_url_u.gif"/>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif" width="10"/></td>
  													<td>
  														<img src="sunspotdemoimg-space.gif" width="10"/>
  														<input type="submit" name="Change" value="Change"/>
  													</td>
  													<td width="1%"><img src="sunspotdemoimg-space.gif"/></td>
  												</tr>
  												</form>
  												<tr>
  													<td colspan="5"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  												</tr>
  											</table>
  										</td>
  									</tr>
  								</table>
  								<img src="sunspotdemoimg-space.gif" height="20"/>
  							</td>
                  				</tr>
  					</tbody>
  				</table>
  			</td>
  <!-- /content -->
  
  		</tr>
  	</table>
  </body>
  </html>
  </xsl:template>
  
  <!-- Copy all and apply templates -->
  
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org