summary.xsl

来自「bookcase,by shell script and c++ and per」· XSL 代码 · 共 58 行

XSL
58
字号
<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"                xmlns:bc ="http://periapsis.org/bookcase/"                version="1.0"><!--   ================================================================   Bookcase summary XSLT file   $Id: summary.xsl,v 1.5 2003/03/22 02:22:53 robby Exp $   Copyright (c) 2003 Robby Stephenson   This XSLT stylesheet is designed to be used with XML data files   from the 'bookcase' application, which can be found at:   http://www.periapsis.org/bookcase/   ================================================================--><xsl:output method="html" version="xhtml" indent="yes"/><xsl:strip-space elements="*"/><xsl:key name="authors" match="bc:book" use="bc:author"/><xsl:template match="/"> <xsl:apply-templates select="bc:bookcase"/></xsl:template><xsl:template match="bc:bookcase"> <html> <head>  <title>Bookcase Summary</title> </head> <body> <xsl:apply-templates select="bc:collection"/> </body> </html></xsl:template><xsl:template match="bc:collection"> <h1> <xsl:value-of select="@title"/> </h1> <hr/> <p> <xsl:text>The collection has </xsl:text> <xsl:value-of select="count(bc:book)"/> <xsl:text> books.</xsl:text> </p></xsl:template></xsl:stylesheet><!-- Local Variables: --><!-- sgml-indent-step: 1 --><!-- sgml-indent-data: 1 --><!-- End: -->

⌨️ 快捷键说明

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