news.xsl

来自「libxml,在UNIX/LINUX下非常重要的一个库,为XML相关应用提供方便」· XSL 代码 · 共 45 行

XSL
45
字号
<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"                xmlns:xhtml="http://www.w3.org/1999/xhtml"                version="1.0">  <xsl:output method="text" encoding="ISO-8859-1"/>  <xsl:template match="/">    <xsl:text>        NEWS file for libxml2  Note that this is automatically generated from the news webpage at:       http://xmlsoft.org/news.html</xsl:text>    <xsl:apply-templates select="//xhtml:h3[1]/.."/>  </xsl:template>  <xsl:template match="xhtml:h3">    <xsl:text></xsl:text>    <xsl:apply-templates/>    <xsl:text>:</xsl:text>  </xsl:template>  <xsl:template match="xhtml:ul">    <xsl:apply-templates select=".//xhtml:li"/>    <xsl:text></xsl:text>  </xsl:template>  <xsl:template match="xhtml:li">    <xsl:text>   - </xsl:text>    <xsl:value-of select="."/>    <xsl:text></xsl:text>  </xsl:template>  <xsl:template match="xhtml:a">    <xsl:value-of select="."/>    <xsl:text> at </xsl:text>    <xsl:value-of select="@href"/>    <xsl:text></xsl:text>  </xsl:template></xsl:stylesheet>

⌨️ 快捷键说明

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