XSLT: How to change an attribute value during ?

后端 未结 8 492
南旧
南旧 2020-11-29 01:14

I have an XML document, and I want to change the values for one of the attributes.

First I copied everything from input to output using:



        
8条回答
  •  [愿得一人]
    2020-11-29 02:03

    I had a similar case where I wanted to delete one attribute from a simple node, and couldn't figure out what axis would let me read the attribute name. In the end, all I had to do was use

    @*[name(.)!='AttributeNameToDelete']

提交回复
热议问题