XSLT - How to select XML Attribute by Attribute?

前端 未结 5 653
陌清茗
陌清茗 2020-12-25 12:20

this is the structure of my source xml:






        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-25 12:53

    Try this

    xsl:variable name="myVarA" select="//DataSet/Data[@Value1='2']/@Value2" />
    

    The '//' will search for DataSet at any depth

提交回复
热议问题