<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output encoding="UTF-8"/> <xsl:template match="/"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <link rel="stylesheet" type="text/css" media="all" href="extensions.css" /> <title>Firefox 套件自動安裝服務</title> </head> <body> <xsl:apply-templates select="/extensions"/> </body> </html> </xsl:template><xsl:template match="/extensions" > <!-- 請把 select 內的前後空白去掉 --> <xsl:for-each select=" extension/category[not (. = preceding::category)] "> <xsl:sort select="." /> <xsl:value-of select="." /><br /> </xsl:for-each> </xsl:template> </xsl:stylesheet>
沒有留言:
張貼留言