|
From: <ivelin@us...> - 2003-04-05 14:27:29
|
Update of /cvsroot/freebuilder/XMLForm/webapp/documentation/stylesheets
In directory sc8-pr-cvs1:/tmp/cvs-serv28213/webapp/documentation/stylesheets
Added Files:
page2html.xsl
Log Message:
- Face lift of the home site. Demos smart content feed and navigation.
- Minor improvements of the XMLProcessorServlet
- Groundwork for integration with Commons Validator
--- NEW FILE: page2html.xsl ---
<?xml version="1.0" encoding="UTF-8"?>
<!--
XMLForm Documentation processing stylesheet.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"
omit-xml-declaration="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
/>
<xsl:template match="page">
<html>
<head>
<title>XMLForm - Home</title>
<meta name="author" value="XMLForm Documentation Team"></meta>
<meta name="email" value="ivelin@..."></meta>
</head>
<body marginwidth="0" class="composite" marginheight="0" bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" width="100%" cellspacing="0">
<!-- TOPBAR start -->
<tr>
<td colspan="2" align="left" valign="top">
<xsl:variable name="topbar" select="document('../topbar.xml')"/>
<xsl:apply-templates select="$topbar"/>
</td>
</tr>
<!-- TOPBAR end -->
<tr><td colspan="2"><hr noshade="noshade" size="1"/></td></tr>
<tr>
<td valign="top" nowrap="nowrap">
<!-- SIDEBAR start -->
<xsl:variable name="sidebar" select="document('../sidebar.xml')"/>
<xsl:apply-templates select="$sidebar"/>
<!-- SIDEBAR end -->
</td>
<td align="left" valign="top">
<!-- WORKAREA start -->
<xsl:apply-templates select="workarea"/>
<!-- WORKAREA end -->
</td>
</tr>
</table>
<!-- FOOTER start -->
<hr noshade="noshade" size="1"/>
<xsl:variable name="footer" select="document('../footer.xml')"/>
<xsl:apply-templates select="$footer"/>
<!-- FOOTER end -->
</body>
</html>
</xsl:template>
<xsl:template match="topbar | sidebar | footer">
<xsl:copy-of select="./* | text()"/>
</xsl:template>
<xsl:template match="workarea">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<strong><xsl:value-of select="title"/></strong>
</font>
</td>
</tr>
<tr>
<td>
<br/>
<blockquote>
<xsl:copy-of select="body/* | body/text()"/>
</blockquote>
</td>
</tr>
</table>
</xsl:template>
<!-- copy all the rest of the markup which is not recognized above -->
<xsl:template match="@*|node()">
<xsl:copy><xsl:copy-of select="@*" /><xsl:apply-templates/></xsl:copy>
</xsl:template>
</xsl:stylesheet>
|