reporttemplate1.xsl

来自「这是自己曾经参与开发的轻纺管理系统B/S版,有一定的研究价值!」· XSL 代码 · 共 45 行

XSL
45
字号
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
            <xsl:template match="/">
            <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> 
            <head> 
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
            <style> 
            .xl24{mso-style-parent:style0;mso-number-format:"\@";text-align:right;} 
            </style> 
            <xml> 
            <x:ExcelWorkbook> 
            <x:ExcelWorksheets> 
            <x:ExcelWorksheet> 
            <x:Name>Sheet1</x:Name> 
            <x:WorksheetOptions> 
                    <x:ProtectContents>False</x:ProtectContents> 
                    <x:ProtectObjects>False</x:ProtectObjects> 
                    <x:ProtectScenarios>False</x:ProtectScenarios> 
            </x:WorksheetOptions> 
            </x:ExcelWorksheet> 
            </x:ExcelWorksheets> 
            </x:ExcelWorkbook> 
            </xml> 
            </head>  
            <body> 
<table border="0" cellpadding="0" cellspacing="0"> 
<tr>
	<th colspan='#ColumnCount#'><Font size="5">#Title#</Font></th>
</tr>
<tr>
	<th colspan='#ColumnCount#' align="left">#SubTitle#</th>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0"> 
<tr>
#HeaderNames#</tr> 
<xsl:for-each select="#NameSpace#">
<tr>
#RowNames#</tr> 
                    </xsl:for-each> 
                    </table> 
                    </body> 
                    </html> 
                    </xsl:template> 
                    </xsl:stylesheet> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?