unit.xsl

来自「此程序为纯jsp实现通讯录功能」· XSL 代码 · 共 26 行

XSL
26
字号
<?xml version="1.0" encoding="GBK"?>
<!-- 编辑使用 XMLSpy v2006 U (http://www.altova.com) 由 any (any) -->
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" version="1.0" encoding="GBK" indent="yes"/>
	<xsl:template match="/">
		<div>
			<xsl:for-each select="/root/unit">
				 <a href="unit.jsp?unit_id={@unit_id}&#38;expand={@expand}">
					<xsl:value-of select="@name"/> 
				</a>
				<br/>
				<xsl:variable name="unit_id">
					<xsl:value-of select="@unit_id"/>
				</xsl:variable>
				<xsl:for-each select="//root/unit/depart[@parent=$unit_id]">
				       <!--input type="checkbox" name="unit" value="{@depart_id}" /--><a href="unitdetail.jsp?id={@depart_id}" target="_blank">
						<xsl:value-of select="@name"/>
					</a>
					<br/>
				</xsl:for-each>
			</xsl:for-each>
		</div>
	</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

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