Getting the value of an attribute in XML using xsl

Wednesday, July 9, 2014

I have xml:



<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://somesite.com">
<status id1="666" id2="555">Accepted</status>
</report>


How can I get the value of id1? I've tried:



<xsl:value-of select="report/status/@mid" />
<xsl:value-of select="status/@mid" />
<xsl:value-of select="@mid" />


but nothing work. I think there is some problem in path to id1







http://ift.tt/1rRShnh