简体   繁体   English

Install4j:如何使用内置操作在XML节点中添加属性?

[英]Install4j: How to add an attributes in the XML node using the built in actions?

Is it possible to add new attributes in the XML node using the built in actions? 是否可以使用内置操作在XML节点中添加新属性?

I had tried replacing whole node using the action "insert XML fragment into XML files" to add the attribute to XML node. 我尝试使用“将XML片段插入XML文件”操作来替换整个节点,以将属性添加到XML节点。

I just wanted an attributes to be added, instead of replacing the whole XML node. 我只是想添加一个属性,而不是替换整个XML节点。

As of install4j 7, this it is not possible to add just attributes. 从install4j 7开始,无法仅添加属性。 You would have to add a "Apply an XSLT transform" action for this purpose. 为此,您将必须添加“应用XSLT转换”操作。

See 看到

https://stackoverflow.com/a/4825010/936832 https://stackoverflow.com/a/4825010/936832

for details on the required XSLT. 有关所需XSLT的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM