XSLT: How to change an attribute value during ?

后端 未结 8 503
南旧
南旧 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:01

    You need a template that will match your target attribute, and nothing else.

    
      This is the value
    
    

    This is in addition to the "copy all" you already have (and is actually always present by default in XSLT). Having a more specific match it will be used in preference.

提交回复
热议问题