<?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>
解决方案 »
- 求高手指教:前台和后台开发有啥区别?还有css、html、ajax、js、jquery都有什么区别
- Jboss服务器,本地没问题,部署到服务器就报错
- 看看学了这些对一个程序员有哪些帮助和好处?
- 要统计我的网站在别的网站的的广告。
- 关于在jsp中使用js的问题
- tomcat1.5免安装版+jdk1.5 启动后报错---windows 找不到文件 "-djava.endorsed.dirs="
- 在不修改C++实现的Corba服务端的情况下,如何将现在有客户端移植到Java实现的B/S结构!
- 请问能不能在一个很大的Web应用程序里,只在一个模块中使用struts?这对整个系统有影响吗?
- 关于使用struts1.1自身的验证框架客户端脚本validate的问题,提取参数为null
- 求助,retrun枚举类型返回的是字符串类型
- 关于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>