on 06-01-2007 7:26 AM
HI All,
Can any one suggest me to compare the two strings in XSLT mapping.Please let me know is there any string comparision function in xslt?
Thanks
Pullarao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pullaro!
It depends what you want to do with the comparison
E.g. you can use a simple xsl-if Tag to compare a value
and then take action.
If your XML looks like this:
<root>
<child><b>value1</b></child>
<child>value2</child>
</root>
you can make an expression like this and take action on it:
<xsl:if test="<b>//child = 'value1'</b>">
<i>.. Do what you want to do here..</i>
</xsl:if>
With kind regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pullarao,
If you have stylus studio installed in your machine then it will directly give you the syntax for the function used for comparison of string.
Try with translate().
Message was edited by:
Shivika Bhorchi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.