I have a soap message
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<id>0</id>
<id>1</id>
</soapenv:Body>
</soapenv:Envelope>
I want to loop through the id elements and check if the current one has a value = 1 but my xslt is not working.
<xsl:template match="/">
<xsl:for-each select="node()">
<xsl:if test="current()/text='1'">
do something
</xsl:if>
</xsl:for-each>
</xsl:template>
Can someone point out what I do wrong and give me directions on how to proceed?
EDIT: I need something that will return true when one of id's is equal to 1, otherwise false .