sylvain 01/08/30 06:05:58
Modified: webapp/docs/samples/xsp simple.xsp
Log:
Added example for capture logicsheet
Revision Changes Path
1.4 +8 -1 xml-cocoon2/webapp/docs/samples/xsp/simple.xsp
Index: simple.xsp
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/docs/samples/xsp/simple.xsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- simple.xsp 2001/05/25 14:26:00 1.3
+++ simple.xsp 2001/08/30 13:05:58 1.4
@@ -5,6 +5,7 @@
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:capture="http://apache.org/cocoon/capture/1.0"
>
<page>
@@ -15,6 +16,12 @@
<content>
+ <capture:fragment-variable name="page_part">
+ <para>These 2 paragraphs were generated at the start of the XSP, and captured
for insertion at the end.</para>
+
+ <para>Brought to you by Cocoon2 at <xsp:expr>new Date()</xsp:expr>.</para>
+ </capture:fragment-variable>
+
<para>Hi there! I'm a simple dynamic page generated by XSP (eXtensible Server
Pages).</para>
<para>I was requested as the URI: <b><xsp-request:get-uri as="xml"/></b></para>
@@ -69,7 +76,7 @@
<xsp-request:get-header-names/>
- <para>Brought to you by Cocoon2 at <xsp:expr>new Date()</xsp:expr>.</para>
+ <xsp:expr>page_part</xsp:expr>
</content>
<log:debug>Processing the end of the page</log:debug>
</page>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]