Currently i have Requirement to add a wildcard condition for a Choose statement condition, i want to filter out and equal first two digit start from 'US' , Discharge and LoadPort tags. Below is a my own created script but its not functioninonfg, Could you please guide me to correct this,
<xsl:for-each select="a:Root/Consol_Details"><xsl:choose>
<xsl:when test="position() = 2 and Discharge = 'US*' ">
<RecipientRoleCollection>
<RecipientRole>
<Code>RAG</Code>
</RecipientRole>
</RecipientRoleCollection>
</xsl:when>
<xsl:when test="position() = 2 and LoadPort = 'US*' ">
<RecipientRoleCollection>
<RecipientRole>
<Code>SAG</Code>
</RecipientRole>
</RecipientRoleCollection>
</xsl:when>
</xsl:choose>
</xsl:for-each>