| 1 |
<?xml version="1.0"?> |
| 2 |
<?cocoon-process type="xsp"?> |
| 3 |
<?cocoon-process type="xslt"?> |
| 4 |
<?xml-stylesheet href="sample.xsl" type="text/xsl"?> |
| 5 |
|
| 6 |
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core"> |
| 7 |
<page title="Time of Day"> |
| 8 |
|
| 9 |
<xsp:logic> |
| 10 |
// Define a variable to hold the time of day |
| 11 |
Date now = new Date(); |
| 12 |
</xsp:logic> |
| 13 |
|
| 14 |
<p> |
| 15 |
To the best of my knowledge, it's now |
| 16 |
<!-- Substitute time of day here --> |
| 17 |
<xsp:expr>now</xsp:expr> |
| 18 |
</p> |
| 19 |
</page> |
| 20 |
</xsp:page> |