<?xml version="1.0" encoding="GBK"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"><xsl:template match="//*" >
<xsl:apply-templates />
<xsl:call-template name="attributes"/>
</xsl:template> <xsl:template match="@*" name="attributes" >
匹配上了属性节点
</xsl:template>
<xsl:template match="text()" name="nodetext">
匹配上了文本节点
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"><xsl:template match="//*" >
<xsl:apply-templates />
<xsl:call-template name="attributes"/>
</xsl:template> <xsl:template match="@*" name="attributes" >
匹配上了属性节点
</xsl:template>
<xsl:template match="text()" name="nodetext">
匹配上了文本节点
</xsl:template>
</xsl:stylesheet>
解决方案 »
- 刹那间,我似乎明白了很多,人生的经历,理想的规划,大家都是怎么规划的
- 网页抓取数据???????????
- 谁能给个myeclipse8.0ga用的hibernatetools呀。hibernate是3.6.0
- spring+flex集成
- struts问题,各位高手帮忙看一下,真得很着急!
- 广州某公司-高薪急招FLASH高手。
- 【请教各位】俺用过tomcat,现在需要用websphere/wsad,只有一个周末的时间,怎么搞定?
- ejb handle
- javamail发送邮件的时候出现no provider 错误!!!
- 浏览器进servlet报404
- 关于eclipse安装webwork插件的问题,急
- 求助:在2003下可以顺利安装tomcat但是无法打开测试页面
<?xml version="1.0" encoding="GBK"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"> <xsl:template match="/ | *">
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:template> <xsl:template match="text()" >
匹配上了文本节点
</xsl:template> <xsl:template match="@*" >
匹配上了属性节点
</xsl:template></xsl:stylesheet>