<xsl:template match="book">
<html>
<head>
<style type="text/css">
hr{height:1px;border:0;color: #ed1b2d;background-color: #ed1b2d;}
</style>
</head>
<body><table cellpadding="0" cellspacing="0" width="786" align="center"><tr><td><xsl:apply-templates/></td></tr></table></body>
</html>
</xsl:template>
<xsl:template match="booktable">
<table cellpadding="2" cellspacing="2"><xsl:apply-templates/></table>
</xsl:template>
<xsl:template match="bookrow">
<tr><xsl:apply-templates/></tr>
</xsl:template>
- >在這裏,我需要添加id屬性匹配,因爲它在它的內容...是在java中有可能XSL解析用java
這不是一個明確定義和有意義的問題。請編輯問題並添加:1.示例(小)源XML文檔。 2.樣本(完整和小型)XSLT轉換。 3.確切的想要的結果。 4.你從你的轉變中得到的結果。 5.描述轉換必須執行的所有要求。 – 2012-03-02 14:46:16