Convert attribute value into element

后端 未结 3 2278
星月不相逢
星月不相逢 2020-12-11 08:57

I\'m trying to transform this xml:


 
  nomX
  prenomX         


        
3条回答
  •  萌比男神i
    2020-12-11 09:53

    This should do the trick:

    
      
        
      
    
    

    for more info on xsl:element see: http://www.w3.org/TR/xslt#section-Creating-Elements-with-xsl:element

    you might want to add some xsl:if to check if there really is a @cle attribute, but otherwise this should work fine

提交回复
热议问题