| <?xml version="1.0"?> |
| |
| <!-- CVS $Id: simple-page2html.xsp,v 1.1 2003/05/07 04:57:15 vgritsenko Exp $ --> |
| |
| <xsp:page language="java" |
| xmlns:xsp="http://apache.org/xsp" |
| xmlns:xsp-request="http://apache.org/xsp/request/2.0" |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| |
| <xsl:stylesheet version="1.0"> |
| |
| <xsl:template match="page"> |
| <html> |
| <head> |
| <title> |
| <xsl:value-of select="title"/> |
| </title> |
| </head> |
| <body bgcolor="white" alink="red" link="blue" vlink="blue"> |
| <xsl:apply-templates/> |
| </body> |
| </html> |
| </xsl:template> |
| |
| <xsl:template match="title"> |
| <h2 style="color: navy; text-align: center"> |
| <xsl:apply-templates/> |
| </h2> |
| </xsl:template> |
| |
| <xsl:template match="para"> |
| <p align="left"> |
| <i> |
| <xsl:apply-templates/> |
| </i> |
| </p> |
| <xsl:if test="not(following-sibling::para)"> |
| <p align="left"> |
| <i>Note from the stylesheet:<br/> |
| Page above was processed by dynamic XSL stylesheet |
| generated by XSP (eXtensible Server Pages).<br/> |
| My source could be found in the file |
| <b>cocoon/sub/stylesheets/simple-page2html.xsp</b>.<br/> |
| I know that I was executed at <b><xsp:expr>new Date()</xsp:expr></b> |
| by <b><xsp:expr>Constants.COMPLETE_NAME</xsp:expr></b>. |
| </i> |
| </p> |
| </xsl:if> |
| </xsl:template> |
| |
| <xsl:template match="@*|node()" priority="-1"> |
| <xsl:copy> |
| <xsl:apply-templates select="@*|node()"/> |
| </xsl:copy> |
| </xsl:template> |
| </xsl:stylesheet> |
| |
| </xsp:page> |