如何利用xsl转换xml文件为html,并将xml文件的内容嵌入到生成的html的数据岛中(xml数据是动态生成的)

要求将xml数据嵌入到生成的html中的

1<xml></xml>

标记块中。
---------------------------------------------------------------

sure, just do

 1<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 2<xsl:template match="/">
 3<html>
 4<body>
 5<xml id="xmldoc">
 6<xsl:copy-of select="/"></xsl:copy-of>
 7</xml>
 8<!--do other stuffs-->
 9</body>
10</html>
11</xsl:template>
12</xsl:stylesheet>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus