lrbarticle.xsl

来自「JPluck是一个基于Java的工具集」· XSL 代码 · 共 22 行

XSL
22
字号
<?xml version="1.0" encoding="UTF-8"?>
<?jpluck name="London Review of Books article"
	description="Extracts the articles text."
	uri-pattern="http://.*lrb.co.uk/.*/.*/.*\.htm.*"
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
      <html>
         <head>
            <xsl:copy-of select="//head/title"/>
         </head>

         <body>
            <xsl:copy-of select="//div[@id='article_head']/h1"/>
            <xsl:copy-of select="//div[@id='article_head']/h2"/>
            <xsl:copy-of select="//div[@id='article_body']"/>
         </body>
      </html>
   </xsl:template>   
 </xsl:stylesheet>
 
 

⌨️ 快捷键说明

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