Dynamic content


Simplest method is to embed XSP in source file, which is parsed by Perl, written back in situ, then passed to the next stylesheet:

<xsp:page
    language="Perl"
    xmlns:xsp="http://apache.org/xsp/core/v1"
    xmlns:esql="http://apache.org/xsp/SQL/v2"
>
...
<p>Run at <xsp:expr>scalar localtime</xsp:expr>
for <xsp:expr>$ENV{'REDIRECT_URL'}</xsp:expr>
</p>
...</xsp:page>

Similar to ASP, PHP etc, but note that output goes on to next stylesheet in the pipeline, not to the browser


22 Next | First| Previous Practical XML under Apache