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

📄 xmltree.xml

📁 SDIO Linux documentation
💻 XML
字号:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"></xsl:output>
<xsl:template match="/">
    <html>
    <head>
        <title>Codetelligence, Inc.</title>
        <link rel="stylesheet" type="text/css" href="../xmlTree.css"/>
        <script type="text/javascript" src="../xmlTree.js"></script>
    </head>
    <xsl:apply-templates/>
    </html>
</xsl:template>

<xsl:template match="HTML/BODY">
    <body>
        <xsl:apply-templates/>
    </body>
</xsl:template>

<xsl:template match="BRANCH">
    <xsl:variable name="id" select="generate-id()"/>
    <span class="trigger">
        <xsl:attribute name="onClick">
            showBranch('<xsl:value-of select="$id"/>');
        </xsl:attribute>
        <img src="closed.gif">
            <xsl:attribute name="id">I<xsl:value-of select="$id"/></xsl:attribute>
        </img>
        <b>
            <xsl:value-of select="OBJECT/param[@name='Name']/@value"/>
        </b>
    </span>
    <span class="branch">
        <xsl:attribute name="id">
            <xsl:value-of select="$id"/>
        </xsl:attribute>
        <xsl:apply-templates />
    </span>
</xsl:template>

<xsl:template match="OBJECT">
    <img src="doc.gif"/>
    <a>
        <xsl:attribute name="href" >
            <xsl:value-of select="param[@name='Local']/@value"/>
        </xsl:attribute>
        <xsl:attribute name="target" >mainFrame</xsl:attribute>
        <xsl:value-of select="param[@name='Name']/@value"/>
    </a><br/>
    <xsl:apply-templates />
</xsl:template>

<!-- avoid output of text node with default template -->
<!--xsl:template match="branchText"/-->

</xsl:stylesheet>

⌨️ 快捷键说明

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