I have the node below. I would like to check if the first 3 characters are not equal to 169.
Code:
<Charge>
<ChargeHistory>
<Statute>
<StatuteCode Word="269142a4">Traffic</StatuteCode>
</Statute>
</ChargeHistory>
</Charge>
How do I do it using xslt when test? e.g.
<xsl:when test='(StatuteCode,1,4)!="169")'>
<xsl:value-of select="true()"/>
</xsl:when>
I think is is wrong.