You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/02/06 20:15:09 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt publish.xsl

gregor      2004/02/06 11:15:09

  Modified:    src/webapp/lenya/pubs/oscom sitemap.xmap
  Added:       src/webapp/lenya/pubs/oscom/xslt publish.xsl
  Removed:     src/webapp/lenya/xslt/publishing main.xsl main-new.xsl
  Log:
  moved obsolete publishing screens out of the core and into the oscom publication.
  
  
  Revision  Changes    Path
  1.46      +2 -3      cocoon-lenya/src/webapp/lenya/pubs/oscom/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/sitemap.xmap,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- sitemap.xmap	4 Feb 2004 21:09:30 -0000	1.45
  +++ sitemap.xmap	6 Feb 2004 19:15:09 -0000	1.46
  @@ -87,7 +87,6 @@
         <map:match pattern="*/matrix/index.xml">
           <map:generate type="directory" src="content/{1}/matrix/"/>
           <map:transform src="xslt/matrix/xinclude.xsl"/>
  -        <!--<map:transform type="xinclude"/>-->
           <map:transform type="xlink">
             <map:parameter name="href" value="content/{1}/overview_dummy.xml"/>
           </map:transform>
  @@ -144,7 +143,7 @@
     <!-- Create New CMS Project -->
     <map:pipeline>
       <map:match pattern="authoring/matrix/ParentChildScreenNewCMS*">
  -      <map:generate type="serverpages" src="../../content/authoring/parent-child.xsp"/>
  +      <map:generate type="serverpages" src="lenya/content/authoring/parent-child.xsp"/>
         <map:transform src="lenya/xslt/authoring/parent-child-new-cms-project.xsl"/>
         <map:serialize type="html"/>
       </map:match>
  @@ -201,7 +200,7 @@
            <map:part src="cocoon:/authoring/matrix/index.xml"/>
          </map:aggregate>
          <map:transform src="xslt/overview/publishScreen.xsl"/>
  -       <map:transform src="../../xslt/publishing/main.xsl"/>
  +       <map:transform src="xslt/publish.xsl"/>
          <map:serialize type="html"/>
        </map:match>
   
  
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/publish.xsl
  
  Index: publish.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   
  <xsl:import href="../../../xslt/util/page-util.xsl"/>
  
  <xsl:param name="title" select="'Publish Document'"/>
  <xsl:param name="action" select="'publish'"/>
  
  <xsl:variable name="separator" select="','"/>
  
  <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">
  <p>
  <h1><xsl:value-of select="$title"/></h1>
  <form action="{$action}">
  
  <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}"/>
  <!-- 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"/>
  &#160;&#160;&#160;<input type="button" onClick="location.href='{referer}';" value="Cancel"/>
  </form>
  </p>
  </xsl:template>
  
  
  </xsl:stylesheet>  
  
  
  

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