⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numbers_english.xslt

📁 基于java的xsl与xml程序例子
💻 XSLT
字号:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="UTF-8"/>
	
	<xsl:variable name="lang.pageTitle">XSLT in English</xsl:variable>
	<xsl:variable name="lang.tableCaption">
		Here is a table of numbers:
	</xsl:variable>
	<xsl:variable name="lang.englishHeading">English</xsl:variable>
	
	<xsl:template match="/">
		<html>
			<head>
				<title><xsl:value-of select="$lang.pageTitle"/></title>
			</head>
			<body>
				<xsl:apply-templates select="numbers"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="numbers">
		<h1><xsl:value-of select="$lang.pageTitle"/></h1>
		<xsl:value-of select="$lang.tableCaption"/>
		<table border="1">
			<tr>
				<th><xsl:value-of select="$lang.englishHeading"/></th>
				<th>
					<xsl:value-of select="language"/>
				</th>
			</tr>
			<xsl:apply-templates select="number"/>
		</table>
	</xsl:template>
	<xsl:template match="number">
		<tr>
			<td>
				<xsl:value-of select="@english"/>
			</td>
			<td>
				<xsl:value-of select="."/>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

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