eXtensible Server Pages ( XSPs )
An XSP page is an XML page with following requirements:
- The document root must be <xsp:page>
- It must have language declaration as an attribute in the <xsp:page> element.
- It must have namespace declaration for xsp as an attribute in the <xsp:page> element.
- For an XSP to be useful, it must also require at least an <xsp:logic> and an <xsp:expr> element.
An XSP page is used by a generator to generate XML document.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp">
static private int counter = 0;
private synchronized int count()
<p>I have been requested <xsp:expr>count()</xsp:expr> times.</p>