我是xslt的新手.我有以下问题.我需要在xml中删除theAttribute
特定元素(例如div
)中的特定属性(在示例中).即
<html>
<head>...</head>
<body>
<div id="qaz" theAtribute="44">
</div>
<div id ="ddd" theAtribute="4">
<div id= "ggg" theAtribute="9">
</div>
</div>
<font theAttribute="foo" />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
成为
<html>
<head>...</head>
<body>
<div id="qaz">
</div>
<div id ="ddd">
<div id= "ggg">
</div>
</div>
<font theAttribute="foo" />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
where属性theAtribute已被删除.我找到了这个, http://www.biglist.com/lists/xsl-list/archives/200404/msg00668.html,我试图找到合适的解决方案.
即 <xsl:template match="@theAtribute" />
从整个文件中删除它...和其他像匹配,如果选择等等没有什么工作.. :-(你能帮我这个吗?这对我来说听起来微不足道,但是对于xslt,我根本无法应付...
谢谢大家
我有一个Web应用程序的pom文件,一个构建配置文件,它为qa测试做了一些必要的事情(在我的代码中).
我在svn上有这个代码,这个代码是在Hudson中编译的,它在nexus中部署了工件.
Hudson有两个职位,一个是qa profile(-P qa),另一个是客户.
我需要的是,我在部署阶段更改了我的qa配置文件中的工件名称,以便nexus有两个不同的war文件,一个用于qa,另一个用于客户.
我使用(谷歌搜索之后)以下看起来像什么都没有在hudshon!
<profile>
<id>qa</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
<configuration>
<classifier>qa</classifier>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Run Code Online (Sandbox Code Playgroud)
有人的想法吗?