You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2003/06/25 19:14:54 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/info cut.xsl paste.xsl copy.xsl
edith 2003/06/25 10:14:54
Modified: src/webapp/lenya/xslt/info cut.xsl paste.xsl copy.xsl
Log:
work in progress
Revision Changes Path
1.6 +17 -11 cocoon-lenya/src/webapp/lenya/xslt/info/cut.xsl
Index: cut.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/cut.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- cut.xsl 14 Jun 2003 18:53:37 -0000 1.5
+++ cut.xsl 25 Jun 2003 17:14:54 -0000 1.6
@@ -13,6 +13,9 @@
<xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:variable name="document-id"><xsl:value-of select="/info/document-id"/></xsl:variable>
+ <xsl:variable name="action"><xsl:value-of select="/info/action"/></xsl:variable>
+
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
@@ -31,17 +34,20 @@
<div class="lenya-box">
<div class="lenya-box-title">Cut Document</div>
<div class="lenya-box-body">
- <form method="post">
- <xsl:attribute name="action"></xsl:attribute>
- <p>
- Do you really want to cut <xsl:value-of select="document-id"/>? It will be placed on the
- clipboard, ready to be pasted at the location of your choosing.
- </p>
- <input type="submit" class="lenya-form-element" value="Cut"/>
- <input type="submit" class="lenya-form-element" value="Cancel"/>
- </form>
+ <form method="post">
+ <xsl:attribute name="action"></xsl:attribute>
+ <p>
+ <input type="hidden" name="documentid" value="{$document-id}"/>
+ <input type="hidden" name="action" value="{$action}"/>
+ <input type="hidden" name="lenya.usecase" value="cut"/>
+ <input type="hidden" name="lenya.step" value="cut"/>
+ Do you really want to cut <xsl:value-of select="document-id"/>? It will be placed on the
+ clipboard, ready to be pasted at the location of your choosing.
+ </p>
+ <input type="submit" class="lenya-form-element" value="Cut"/>
+    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
+ </form>
</div>
</div>
</xsl:template>
-
</xsl:stylesheet>
1.6 +26 -10 cocoon-lenya/src/webapp/lenya/xslt/info/paste.xsl
Index: paste.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/paste.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- paste.xsl 14 Jun 2003 18:53:37 -0000 1.5
+++ paste.xsl 25 Jun 2003 17:14:54 -0000 1.6
@@ -13,6 +13,10 @@
<xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:variable name="first-document-id"><xsl:value-of select="/info/first-document-id"/></xsl:variable>
+ <xsl:variable name="sec-document-id"><xsl:value-of select="/info/sec-document-id"/></xsl:variable>
+ <xsl:variable name="task-id"><xsl:value-of select="/info/task-id"/></xsl:variable>
+
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
@@ -31,16 +35,28 @@
<div class="lenya-box">
<div class="lenya-box-title">Paste Document</div>
<div class="lenya-box-body">
- <form method="post">
- <xsl:attribute name="action"></xsl:attribute>
- <p>
- Do you really want to paste <xsl:value-of select="document-id"/> from the clipboard?
- </p>
- <input type="submit" class="lenya-form-element" value="Paste"/>
- <input type="submit" class="lenya-form-element" value="Cancel"/>
- </form>
+ <form method="get">
+ <xsl:attribute name="action"></xsl:attribute>
+ <input type="hidden" name="lenya.usecase" value="paste"/>
+ <input type="hidden" name="lenya.step" value="paste"/>
+ <input type="hidden" name="task-id" value="{$task-id}"/>
+ <xsl:call-template name="task-parameters">
+ <xsl:with-param name="prefix" select="''"/>
+ </xsl:call-template>
+ <p>
+ Do you really want to paste <xsl:value-of select="first-document-id"/> from the clipboard?
+ </p>
+ <input type="submit" class="lenya-form-element" value="Paste"/>
+    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
+ </form>
</div>
</div>
</xsl:template>
-
+
+<xsl:template name="task-parameters">
+ <xsl:param name="prefix" select="'task.'"/>
+ <input type="hidden" name="{$prefix}properties.node.firstdocumentid" value="{$first-document-id}"/>
+ <input type="hidden" name="{$prefix}properties.node.secdocumentid" value="{$sec-document-id}"/>
+</xsl:template>
+
</xsl:stylesheet>
1.6 +16 -9 cocoon-lenya/src/webapp/lenya/xslt/info/copy.xsl
Index: copy.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/copy.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- copy.xsl 14 Jun 2003 18:53:37 -0000 1.5
+++ copy.xsl 25 Jun 2003 17:14:54 -0000 1.6
@@ -13,6 +13,9 @@
<xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:variable name="document-id"><xsl:value-of select="/info/document-id"/></xsl:variable>
+ <xsl:variable name="action"><xsl:value-of select="/info/action"/></xsl:variable>
+
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
@@ -31,14 +34,18 @@
<div class="lenya-box">
<div class="lenya-box-title">Copy Document</div>
<div class="lenya-box-body">
- <form method="post">
- <xsl:attribute name="action"></xsl:attribute>
- <p>
- Do you really want to copy <xsl:value-of select="document-id"/>? It will be placed on the
- clipboard, ready to be pasted at the location of your choosing.
- </p>
- <input type="submit" class="lenya-form-element" value="Copy"/>
- <input type="submit" class="lenya-form-element" value="Cancel"/>
+ <form method="post">
+ <xsl:attribute name="action"></xsl:attribute>
+ <p>
+ <input type="hidden" name="documentid" value="{$document-id}"/>
+ <input type="hidden" name="action" value="{$action}"/>
+ <input type="hidden" name="lenya.usecase" value="copy"/>
+ <input type="hidden" name="lenya.step" value="copy"/>
+ Do you really want to copy <xsl:value-of select="document-id"/>?
+ It will be placed on the clipboard, ready to be pasted at the location of your choosing.
+ </p>
+ <input type="submit" class="lenya-form-element" value="Copy"/>
+    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
</form>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org