File: dynamic.xsp

package info (click to toggle)
xmlstarlet 1.0.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,164 kB
  • ctags: 389
  • sloc: ansic: 4,578; sh: 3,109; xml: 1,821; makefile: 92
file content (20 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="sample.xsl" type="text/xsl"?>

<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
  <page title="Time of Day">
  
    <xsp:logic>
      // Define a variable to hold the time of day
      Date now = new Date();
    </xsp:logic>
  
    <p>
      To the best of my knowledge, it's now
      <!-- Substitute time of day here -->
      <xsp:expr>now</xsp:expr>
    </p>
  </page>
</xsp:page>