You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2003/08/08 14:43:55 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix/authoring editWithForms.xsl
michi 2003/08/08 05:43:55
Modified: src/webapp/lenya/pubs/blog usecase-edit.xmap
src/webapp/lenya/pubs/oscom usecase-edit.xmap
src/webapp/lenya/pubs/oscom/xslt/matrix/authoring
editWithForms.xsl
Log:
unique numbering and temporary source writing implemented
Revision Changes Path
1.2 +7 -1 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- usecase-edit.xmap 5 Aug 2003 19:50:47 -0000 1.1
+++ usecase-edit.xmap 8 Aug 2003 12:43:54 -0000 1.2
@@ -21,6 +21,12 @@
<map:match pattern="open" type="step">
<map:match pattern="authoring/entries/**.html">
<map:generate src="content/authoring/entries/{1}.xml"/>
+ <map:transform src="../../xslt/authoring/edit/numberTags.xsl"/>
+ <map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
+ <map:parameter name="source" value="work/editor/authoring/entries/{1}.xml"/>
+ </map:transform>
+ <map:transform type="write-source"/>
+ <map:transform src="../../xslt/authoring/edit/removeSourceTags.xsl"/>
<map:transform src="xslt/entry/editWithForms.xsl">
<map:parameter name="entryid" value="{1}"/>
</map:transform>
1.2 +29 -1 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- usecase-edit.xmap 7 Aug 2003 16:29:48 -0000 1.1
+++ usecase-edit.xmap 8 Aug 2003 12:43:54 -0000 1.2
@@ -21,6 +21,12 @@
<map:match pattern="open" type="step">
<map:match pattern="authoring/matrix/*.html">
<map:generate src="content/authoring/matrix/{1}.xml"/>
+ <map:transform src="../../xslt/authoring/edit/numberTags.xsl"/>
+ <map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
+ <map:parameter name="source" value="work/editor/authoring/matrix/{1}.xml"/>
+ </map:transform>
+ <map:transform type="write-source"/>
+ <map:transform src="../../xslt/authoring/edit/removeSourceTags.xsl"/>
<map:transform src="xslt/matrix/authoring/editWithForms.xsl">
<map:parameter name="projectid" value="{1}"/>
</map:transform>
@@ -28,6 +34,17 @@
</map:match>
</map:match>
+ <map:match pattern="update" type="step">
+ <map:match pattern="authoring/matrix/*.html">
+ <map:act type="save">
+ <map:parameter name="file" value="content/authoring/matrix/{1}.xml"/>
+ <!-- FIXME: Error Message -->
+ <map:redirect-to uri="/lenya/index.html" />
+ </map:act>
+ <map:redirect-to uri="{1}.html" />
+ </map:match>
+ </map:match>
+
<map:match pattern="close" type="step">
<map:match pattern="authoring/matrix/*.html">
<map:act type="save">
@@ -36,6 +53,17 @@
<map:redirect-to uri="/lenya/index.html" />
</map:act>
<map:redirect-to uri="{1}.html" />
+ </map:match>
+ </map:match>
+
+
+
+ <!-- DEBUG -->
+ <map:match pattern="number" type="step">
+ <map:match pattern="authoring/matrix/*.html">
+ <map:generate src="content/authoring/matrix/{1}.xml"/>
+ <map:transform src="../../xslt/authoring/edit/numberTags.xsl"/>
+ <map:serialize type="xml" />
</map:match>
</map:match>
</map:match>
1.2 +2 -2 cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix/authoring/editWithForms.xsl
Index: editWithForms.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix/authoring/editWithForms.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- editWithForms.xsl 7 Aug 2003 16:29:48 -0000 1.1
+++ editWithForms.xsl 8 Aug 2003 12:43:54 -0000 1.2
@@ -13,10 +13,10 @@
<form method="post" action="?lenya.usecase=edit&lenya.step=close">
<table>
<tr>
- <td>Project Name</td><td><input type="text" name="system_name" size="40"><xsl:attribute name="value"><xsl:value-of select="/system/system_name" /></xsl:attribute></input></td>
+ <td>Project Name</td><td><input type="text" name="/system/system_name/{/system/system_name/@tagID}" size="40"><xsl:attribute name="value"><xsl:value-of select="/system/system_name" /></xsl:attribute></input></td>
</tr>
<tr>
- <td valign="top">Description</td><td><textarea name="description" cols="40" rows="5"><xsl:value-of select="/system/description" /></textarea></td>
+ <td valign="top">Description</td><td><textarea name="/system/description/{/system/description/@tagID}" cols="40" rows="5"><xsl:value-of select="/system/description" /></textarea></td>
</tr>
<!--
<xsl:apply-templates select="/system"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org