📄 depart.xsl
字号:
<?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="depart.jsp?unit_id={@unit_id}&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]">
<a href="depart.jsp?unit_id={$unit_id}&depart_id={@depart_id}&expand={@expand}">
<xsl:value-of select="@name"/>
</a>
<br/>
<xsl:variable name="depart_id">
<xsl:value-of select="@depart_id"/>
</xsl:variable>
<xsl:for-each select="//root/unit/depart/person[@parent=$depart_id]">
<!--input type="checkbox" name="depart" value="{@id}" /--><a href="departdetail.jsp?id={@id}" target="_blank"><xsl:value-of select="@name"/></a><br/>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -