filter.xsl

来自「a a a a a a a a a a a a a a a a a a a a 」· XSL 代码 · 共 52 行

XSL
52
字号
<?xml version="1.0"?><!-- Copyright (C) 2006 Ferdinand Prantl <prantl@users.sourceforge.net> -->
<!-- All rights reserved. -->
<!-- -->
<!-- This work is licensed under a Creative Commons Attribution 2.5 --><!-- License. See the attached file LICENSE for more information. --><!-- See also http://creativecommons.org/licenses/by/2.5/. --><!-- -->
<!-- See http://domino-javadoc.sourceforge.net for the most recent version -->
<!-- and more information. -->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" />
<xsl:template match="description">
  <xsl:element name="{name()}">
    <xsl:text>
</xsl:text><xsl:apply-templates />
  </xsl:element>
</xsl:template>
<xsl:template match="description/text()">
</xsl:template>
<xsl:template match="title">
  <xsl:if test=".!='Syntax' and .!='Properties' and .!='Property' and .!='Methods' and .!='Method' and .!='Defined in' and .!='Data type'">
    <xsl:element name="{name()}">
      <xsl:apply-templates />
    </xsl:element><xsl:text>
</xsl:text>
  </xsl:if>
</xsl:template>
<xsl:template match="text | code | list | item | table | row | cell | see">
  <xsl:if test="not(preceding-sibling::title) or preceding-sibling::title[1][.!='Syntax' and .!='Properties' and .!='Property' and .!='Methods' and .!='Method' and .!='Defined in' and .!='Data type']">
    <xsl:element name="{name()}">
      <xsl:apply-templates />
    </xsl:element><xsl:if test="name() != 'item'"><xsl:text>
</xsl:text></xsl:if>
  </xsl:if>
</xsl:template>

<xsl:template match="link">
  <xsl:element name="{name()}">
    <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
    <xsl:apply-templates />
  </xsl:element>
</xsl:template>

</xsl:stylesheet>

⌨️ 快捷键说明

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