lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/pubs/oscom usecase-edit.xmap
Date Fri, 08 Aug 2003 16:16:06 GMT
michi       2003/08/08 09:16:06

  Modified:    src/webapp/lenya/pubs/blog usecase-edit.xmap
               src/webapp/lenya/pubs/blog/xslt/entry editWithForms.xsl
               src/webapp/lenya/pubs/oscom usecase-edit.xmap
  Log:
  blog edit generalized
  
  Revision  Changes    Path
  1.3       +15 -5     cocoon-lenya/src/webapp/lenya/pubs/blog/usecase-edit.xmap
  
  Index: usecase-edit.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/usecase-edit.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- usecase-edit.xmap	8 Aug 2003 12:43:54 -0000	1.2
  +++ usecase-edit.xmap	8 Aug 2003 16:16:06 -0000	1.3
  @@ -6,7 +6,7 @@
   
     <map:components>
       <map:actions>
  -      <map:action name="save-blog-entry" logger="sitemap.action.save-blog-entry" src="org.apache.lenya.cms.cocoon.acting.SaveBlogEntryAction"
/>
  +     <map:action name="save" logger="sitemap.action.save" src="org.apache.lenya.cms.cocoon.acting.HTMLFormSaveAction"
/>
       </map:actions>
     </map:components>
   
  @@ -36,12 +36,22 @@
   
           <map:match pattern="close" type="step">
             <map:match pattern="authoring/entries/**/*.html">
  -            <map:act type="save-blog-entry">
  -              <map:parameter name="file" value="content/authoring/entries/{1}/{2}.xml"/>
  +            <map:act type="save">
  +              <map:parameter name="file" value="work/editor/authoring/entries/{1}/{2}.xml"/>
                 <!-- FIXME: Error Message -->
                 <map:redirect-to uri="/lenya/index.html" />
               </map:act>
  -            <map:redirect-to uri="{2}.html" />
  +
  +            <map:generate src="work/editor/authoring/entries/{1}/{2}.xml"/>
  +            <map:transform src="../../xslt/authoring/edit/unnumberTags.xsl"/>
  +            <map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
  +              <map:parameter name="source" value="content/authoring/entries/{1}/{2}.xml"/>
  +            </map:transform>
  +            <map:transform type="write-source"/>
  +            <map:transform src="../../xslt/authoring/edit/redirect-to.xsl">
  +              <map:parameter name="uri" value="{2}.html"/>
  +            </map:transform>
  +            <map:serialize type="html" />
             </map:match>
           </map:match>
         </map:match>
  
  
  
  1.2       +4 -4      cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/editWithForms.xsl
  
  Index: editWithForms.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/editWithForms.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- editWithForms.xsl	5 Aug 2003 19:50:48 -0000	1.1
  +++ editWithForms.xsl	8 Aug 2003 16:16:06 -0000	1.2
  @@ -15,13 +15,13 @@
   <form method="post" action="?lenya.usecase=edit&amp;lenya.step=close">
   <table>
   <tr>
  -  <td>Title</td><td><input type="text" name="title" size="40"><xsl:attribute
name="value"><xsl:value-of select="/echo:entry/echo:title" /></xsl:attribute></input></td>
  +  <td>Title</td><td><input type="text" name="element./echo:entry/echo:title[{/echo:entry/echo:title/@tagID}]"
size="40"><xsl:attribute name="value"><xsl:value-of select="/echo:entry/echo:title"
/></xsl:attribute></input></td>
   </tr>
   <tr>
  -  <td>Subtitle</td><td><input type="text" name="subtitle" size="40"><xsl:attribute
name="value"><xsl:value-of select="/echo:entry/echo:subtitle" /></xsl:attribute></input></td>
  +  <td>Subtitle</td><td><input type="text" name="element./echo:entry/echo:subtitle[{/echo:entry/echo:subtitle/@tagID}]"
size="40"><xsl:attribute name="value"><xsl:value-of select="/echo:entry/echo:subtitle"
/></xsl:attribute></input></td>
   </tr>
   <tr>
  -  <td valign="top">Summary</td><td><textarea name="summary" cols="40"
rows="5"><xsl:value-of select="/echo:entry/echo:summary" /></textarea></td>
  +  <td valign="top">Summary</td><td><textarea name="element./echo:entry/echo:summary[{/echo:entry/echo:summary/@tagID}]"
cols="40" rows="5"><xsl:value-of select="/echo:entry/echo:summary" /></textarea></td>
   </tr>
   <xsl:apply-templates select="/echo:entry/echo:content"/>
   <tr>
  @@ -35,7 +35,7 @@
   
   <xsl:template match="echo:content[@type='text/plain']">
   <tr>
  -  <td valign="top">Content (text/plain)</td><td><textarea name="content[3]"
cols="40" rows="5"><xsl:value-of select="."/></textarea></td>
  +  <td valign="top">Content (text/plain)</td><td><textarea name="element./echo:entry/echo:content[{@tagID}]"
cols="40" rows="5"><xsl:value-of select="."/></textarea></td>
   </tr>
   </xsl:template>
   
  
  
  
  1.4       +1 -4      cocoon-lenya/src/webapp/lenya/pubs/oscom/usecase-edit.xmap
  
  Index: usecase-edit.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/usecase-edit.xmap,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- usecase-edit.xmap	8 Aug 2003 15:37:36 -0000	1.3
  +++ usecase-edit.xmap	8 Aug 2003 16:16:06 -0000	1.4
  @@ -60,9 +60,6 @@
                 <map:parameter name="uri" value="{1}.html"/>
               </map:transform>
               <map:serialize type="html" />
  -<!--
  -            <map:redirect-to uri="{1}.html" />
  --->
             </map:match>
           </map:match>
         </map:match>
  
  
  

---------------------------------------------------------------------
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