include 和 import 都可以啊!看看xslt的spec,有例子的。
解决方案 »
- 连接oracle出问题,求解答
- quartz的JOB执行SERVICE方法时候传入动态的参数
- 求XML教学视频和struts的教学视频(hibernate、spring的也要),有好的话,加分回报!!
- 请大家帮帮忙,如何配置tomact
- 关于dom4j创建xml文件疑问
- 登陆数量的限制问题-5天内结贴,100分奉上
- spring+hibernate问题(初学,大侠们帮忙)
- tomcat的小小问题,
- struts
- 用JB6写的EJB在JB7中编译,编译成功的请进来。。。
- 在eclipse中执行Generate EJB Classes 这一步时 提示:java.lang.ClassNotFoundException ,请问各位是什么原因?
- ★ 请教一个CMR的简单问题 ★
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="article.xsl"/>
<xsl:import href="bigfont.xsl"/>
<xsl:attribute-set name="note-style">
<xsl:attribute name="font-style">italic</xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>URL :
http://www.w3.org/TR/xslt#section-Combining-Stylesheets
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output/><xsl:template match="/">
<page title="XSLT Through Generation">
<xsl:for-each select="products/product">
<para>
<link href="{@href}"><xsl:value-of select="name"/></link>
</para>
</xsl:for-each>
</page>
</xsl:template></xsl:stylesheet>generate_html.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"><xsl:template match="xsl:output">
<xsl:copy>
<xsl:attribute name="method">html</xsl:attribute>
</xsl:copy>
</xsl:template><xsl:template match="page">
<html>
<head><title><xsl:value-of select="@title"/></title></head>
<body>
<h1><xsl:value-of select="@title"/></h1>
<xsl:apply-templates/>
</body>
</html>
</xsl:template><xsl:template match="para">
<p><xsl:apply-templates/></p>
</xsl:template><xsl:template match="link">
<a href="{@href}"><xsl:apply-templates/></a>
</xsl:template><xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template></xsl:stylesheet>用generate_html.xsl解析start.xsl,怎么做,谢谢!