lenya/src/webapp/lenya/xslt/publishing screen.xsl,1.1,1.2

Andreas Hartmann <[email protected]> Fri, 16 May 2003 17:29:32 +0200
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/webapp/lenya/xslt/publishing
In directory erbium:/tmp/cvs-serv29927/src/webapp/lenya/xslt/publishing

Modified Files:
	screen.xsl 
Log Message:
- added PageEnvelopeModule docs
- added PEM to cocoon.xconf
- moved workflow.xmap to usecase.xmap
- added common publishing pipeline + xsp + xslt
- added shared scheduling XSP

Index: screen.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/xslt/publishing/screen.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** screen.xsl	14 May 2003 13:47:07 -0000	1.1
--- screen.xsl	16 May 2003 15:29:30 -0000	1.2
***************
*** 1,78 ****
  <?xml version="1.0" encoding="iso-8859-1"?>
  
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   
  <xsl:import href="../util/page-util.xsl"/>
  
  <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
  
! <xsl:param name="title" select="'Publish Document'"/>
  <xsl:param name="action" select="'publish'"/>
  <xsl:variable name="separator" select="','"/>
- <xsl:variable name="documentid" select="publish/document-id"/>
  
! <xsl:template match="/">
! <html>
!   <head>
!     <title><xsl:value-of select="$title"/></title>
!     <xsl:call-template name="include-css">
!       <xsl:with-param name="context-prefix" select="publish/context"/>
!     </xsl:call-template>
!   </head>
! <body>
!   <xsl:apply-templates/>
! </body>
! </html>
! </xsl:template>
  
! <xsl:template match="publish">
! <!--<xsl:apply-templates/>-->
! <!--Referer: <xsl:value-of select="referer"/><br />-->
! <p>
! <h1><xsl:value-of select="$title"/></h1>
! <form action="">
! <input type="hidden" name="lenya.usecase" value="publish"/>
! <input type="hidden" name="lenya.step" value="publish"/>
  
! <input type="hidden" name="sources" value="{sources}"/> <!-- DefaultFilePublisher -->
! <input type="hidden" name="uris" value="{uris}"/> <!-- StaticHTMLExporter -->
  
! <input type="hidden" name="properties.publish.sources" value="{sources}"/> <!-- AntTask -->
! <input type="hidden" name="properties.export.uris" value="{uris}"/> <!-- AntTask -->
  
! <input type="hidden" name="task-id" value="{task-id}"/>
  
! <input type="hidden" name="properties.publish.documentid" value="{$documentid}"/>
  
! <!-- FIXME: arbitrary request parameters set within the menubar should be transfered!
! <input type="hidden" name="server-port" value="1937"/>
! -->
  
! <div class="menu">Do you really want to publish the following source<xsl:text/>
! <xsl:if test="contains(sources, $separator)">s</xsl:if>
! <xsl:text/>?
! </div>
! <ul>
!   <xsl:call-template name="print-list">
!     <xsl:with-param name="list-string" select="sources"/>
!   </xsl:call-template>
! </ul>
! <div class="menu">And do you really want to publish the following uri<xsl:text/>
! <xsl:if test="contains(uris, $separator)">s</xsl:if>
! <xsl:text/>?
! </div>
! <ul>
!   <xsl:call-template name="print-list">
!     <xsl:with-param name="list-string" select="uris"/>
!   </xsl:call-template>
! </ul>
  
! <input type="submit" value="YES"/>
! <!--<input type="submit" name="submit" value="cancel"/>-->
! &#160;&#160;&#160;<input type="button" onClick="location.href='{referer}';" value="Cancel"/>
! </form>
! </p>
  </xsl:template>
- 
  
  </xsl:stylesheet>  
--- 1,83 ----
  <?xml version="1.0" encoding="iso-8859-1"?>
  
! <xsl:stylesheet version="1.0"
!     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
!     xmlns:page="http://www.lenya.org/2003/cms-page"
!     xmlns:usecase="http://lenya.org/usecase/1.0"
!     >
   
  <xsl:import href="../util/page-util.xsl"/>
+ <xsl:import href="../scheduler/common.xsl"/>
  
  <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
  
! <xsl:param name="task-id"/>
  <xsl:param name="action" select="'publish'"/>
+ 
  <xsl:variable name="separator" select="','"/>
  
! <xsl:template match="/usecase:publish">
  
!   <xsl:variable name="uris"><xsl:value-of select="usecase:uris"/></xsl:variable>
!   <xsl:variable name="sources"><xsl:value-of select="usecase:sources"/></xsl:variable>
!   <xsl:variable name="document-id"><xsl:value-of select="usecase:document-id"/></xsl:variable>
  
!   <page:page>
!     <page:title>Publish</page:title>
!     <page:body>
!       <p>
!         <form action="">
!         <input type="hidden" name="lenya.usecase" value="publish"/>
!         <input type="hidden" name="lenya.step" value="publish"/>
  
!         <input type="hidden" name="properties.publish.sources" value="{$sources}"/>
!         <input type="hidden" name="properties.publish.documentid" value="{$document-id}"/>
!         <input type="hidden" name="properties.export.uris" value="{$uris}"/>
  
!         <input type="hidden" name="task-id" value="{$task-id}"/>
!         
!         <div class="menu">Do you really want to publish the following source<xsl:text/>
!           <xsl:if test="contains(sources, $separator)">s</xsl:if>
!           <xsl:text/>?
!         </div>
!         
!         <ul>
!           <xsl:call-template name="print-list">
!             <xsl:with-param name="list-string" select="$sources"/>
!           </xsl:call-template>
!         </ul>
!         
!         <div class="menu">And do you really want to publish the following uri<xsl:text/>
!           <xsl:if test="contains(uris, $separator)">s</xsl:if>
!           <xsl:text/>?
!         </div>
!         
!         <ul>
!           <xsl:call-template name="print-list">
!             <xsl:with-param name="list-string" select="$uris"/>
!           </xsl:call-template>
!         </ul>
  
!         <input type="submit" value="YES"/>
!         <!--<input type="submit" name="submit" value="cancel"/>-->
!             &#160;&#160;&#160;<input type="button" onClick="location.href='{referer}';" value="Cancel"/>
!       </form>
!     </p>
!     
!     <p>
!       <form action="">
  
!         <!-- task parameters -->
!         <input type="hidden" name="task.properties.export.uris" value="{$uris}"/>
!         <input type="hidden" name="task.properties.publish.sources" value="{$sources}"/>
!         <input type="hidden" name="task-id" value="{$task-id}"/>
  
!         <xsl:call-template name="scheduler-form"/>
  
!       </form>
!     </p>
!     </page:body>
!   </page:page>
  </xsl:template>
  
  </xsl:stylesheet>