lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya usecase.xmap
Date Fri, 15 Aug 2003 08:30:56 GMT
andreas     2003/08/15 01:30:56

  Modified:    src/webapp/lenya/xslt/info info.xsl
               src/webapp/lenya usecase.xmap
  Added:       src/webapp/lenya/xslt/info workflow2info.xsl
  Log:
  implemented workflow history in info area
  
  Revision  Changes    Path
  1.17      +5 -7      cocoon-lenya/src/webapp/lenya/xslt/info/info.xsl
  
  Index: info.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/info.xsl,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- info.xsl	14 Aug 2003 16:36:49 -0000	1.16
  +++ info.xsl	15 Aug 2003 08:30:56 -0000	1.17
  @@ -163,19 +163,17 @@
   	<td><xsl:apply-templates/></td>
   </xsl:template>
   
  -<xsl:template match="wf:version">
  -     <table class="lenya-table-noborder">
  -	<tr><td><xsl:value-of select="@state"/></td><td><xsl:value-of
select="@user"/></td><td><xsl:value-of select="@date"/></td></tr>
  -    </table>
  +<xsl:template match="lenya-info:workflow">
  +	<xsl:copy-of select="node()"/>
   </xsl:template>
  -
  -
  +	
  +	
   <xsl:template match="lenya-info:permissions">
     <table class="lenya-table-noborder">
     <tr>
       <td>
       	<form method="get" name="form_ssl_{@area}">
  -				<input type="hidden" name="lenya.usecase" value="info"/>
  +				<input type="hidden" name="lenya.usecase" value="info-ac-{substring(@area, 1, 4)}"/>
   				<input type="hidden" name="lenya.step" value="showscreen"/>
   				<input type="hidden" name="area" value="{@area}"/>
   				<input type="hidden" name="change_ssl" value="true"/>
  
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/xslt/info/workflow2info.xsl
  
  Index: workflow2info.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
   $Id: workflow2info.xsl,v 1.1 2003/08/15 08:30:56 andreas Exp $
   -->
  
   <xsl:stylesheet version="1.0"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:wf="http://apache.org/cocoon/lenya/workflow/1.0"
     xmlns:lenya-info="http://apache.org/cocoon/lenya/info/1.0"
     >
    
  <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
  
  <xsl:template match="wf:history">
  	<lenya-info:info>
  		<lenya-info:workflow>
  			<h2>Variables</h2>
  			<table class="lenya-table">
  				<tr><th>Name</th><th>Value</th></tr>
  				<xsl:apply-templates select="wf:variable"/>
  			</table>
  			<h2>History</h2>
  			<table class="lenya-table">
  				<tr>
  					<th>Event</th>
  					<th>State</th>
  				</tr>
  				<xsl:apply-templates select="wf:version"/>
  			</table>
  		</lenya-info:workflow>
  	</lenya-info:info>
  </xsl:template>
  
  <xsl:template match="wf:version">
  	<tr>
  		<td>
  			<xsl:value-of select="@event"/>
  		</td>
  		<td>
  			<xsl:value-of select="@state"/>
  		</td>
  	</tr>
  </xsl:template>
  
  <xsl:template match="wf:variable">
  	<tr>
  		<td>
  			<xsl:value-of select="@name"/>
  		</td>
  		<td>
  			<xsl:value-of select="@value"/>
  		</td>
  	</tr>
  </xsl:template>
  
  <xsl:template match="@*|node()">
  	<xsl:copy>
  		<xsl:apply-templates select="@*|node()"/>
  	</xsl:copy>
  </xsl:template>  
  
  </xsl:stylesheet>
  
  
  
  1.61      +11 -0     cocoon-lenya/src/webapp/lenya/usecase.xmap
  
  Index: usecase.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/usecase.xmap,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- usecase.xmap	13 Aug 2003 19:22:10 -0000	1.60
  +++ usecase.xmap	15 Aug 2003 08:30:56 -0000	1.61
  @@ -674,6 +674,17 @@
             </map:match>
             
           </map:match>
  +        
  +        <map:match pattern="info-workflow" type="usecase">
  +        	<map:act type="resource-exists" src="pubs/{page-envelope:publication-id}/content/workflow/history/{page-envelope:document-path}">
  +						<map:generate src="pubs/{page-envelope:publication-id}/content/workflow/history/{page-envelope:document-path}"/>
  +						<map:transform src="xslt/info/workflow2info.xsl"/>
  +						<map:transform src="xslt/info/info.xsl">
  +							<map:parameter name="tab" value="{../../1}"/>
  +						</map:transform>
  +						<map:serialize/>
  +        	</map:act>
  +        </map:match>
   
           <map:match pattern="info-*" type="usecase">
             
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message