Getting the value of an attribute in XML

后端 未结 1 554
终归单人心
终归单人心 2020-12-12 14:29

How would one get the value of attribute1 (blah) in the following xml using xslt:





        
相关标签:
1条回答
  • 2020-12-12 15:09

    This is more of an xpath question, but like this, assuming the context is the parent element:

    <xsl:value-of select="name/@attribute1" />
    
    0 讨论(0)
提交回复
热议问题