📄 main.xsl.svn-base
字号:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xalan= "http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:include href="header.xsl"/> <xsl:include href="banner.xsl"/> <xsl:include href="utils.xsl"/> <!-- main page --> <xsl:template match="/"> <html> <head> <xsl:call-template name="header"/> <xsl:apply-templates mode="script" select="/"/> </head> <body onload="init()"> <table width="100%" height="100%"> <!-- banner --> <tr><td> <xsl:call-template name="banner"/> </td></tr> <!-- content --> <tr height="100%"><td> <xsl:call-template name="content"/> </td></tr> </table> </body> </html> </xsl:template> <xsl:template mode="script" match="/"/> <xsl:template name="formLayout"> <xsl:param name="title"/> <xsl:param name="content"/> <xsl:param name="buttons"/> <xsl:param name="indent" select="100"/> <table width="100%" height="100%"> <!-- title --> <xsl:call-template name="formTitle"> <xsl:with-param name="title" select="$title"/> <xsl:with-param name="indent" select="$indent"/> </xsl:call-template> <!-- content --> <xsl:call-template name="formSeparator"/> <xsl:call-template name="formContent"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="indent" select="$indent"/> </xsl:call-template> <!-- buttons --> <xsl:if test="$buttons"> <xsl:call-template name="formSeparator"/> <xsl:call-template name="formContent"> <xsl:with-param name="content" select="$buttons"/> <xsl:with-param name="indent" select="$indent"/> </xsl:call-template> </xsl:if> <!-- footer --> <xsl:call-template name="formFiller"> <xsl:with-param name="indent" select="$indent"/> </xsl:call-template> <tr><td class="blue-content" colspan="3"/></tr> </table> </xsl:template> <xsl:template name="formTitle"> <xsl:param name="title"/> <xsl:param name="indent" select="100"/> <tr> <td class="padded-content" width="{$indent}"/> <td class="dots"/> <td class="padded-content"> <h1><xsl:value-of select="$title"/></h1> </td> </tr> </xsl:template> <xsl:template name="formContent"> <xsl:param name="content"/> <xsl:param name="indent" select="100"/> <tr> <td class="padded-content" width="{$indent}"/> <td class="dots"/> <td class="padded-content" align="center"> <xsl:copy-of select="$content"/> </td> </tr> </xsl:template> <xsl:template name="formSection"> <xsl:param name="title"/> <xsl:param name="indent" select="100"/> <tr> <td class="content" width="{$indent}" valign="bottom"> <table width="100%"><tr><td class="dots"/></tr></table> </td> <td class="content" valign="bottom" colspan="2"> <table width="100%"><tr> <td class="green-content"><xsl:copy-of select="$title"/></td> <td class="content" width="100%" valign="bottom"> <table width="100%"><tr><td class="dots"/></tr></table> </td> </tr></table> </td> </tr> </xsl:template> <xsl:template name="formSeparator"> <tr><td class="dots" colspan="3"/></tr> </xsl:template> <xsl:template name="formFiller"> <xsl:param name="indent" select="100"/> <tr height="100%"> <td class="padded-content" width="{$indent}"/> <td class="dots"/> <td class="padded-content"> </td> </tr> </xsl:template> </xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -