on 03-23-2011 10:26 AM
Hello Experts,
I got one change requirment, where the name filed in the idoc contains special character (like semi colon) in between the name, I want to put double quotation for that special character at XSLT mapping.
Eg:
Input Name: Ravi ; Kumar
Out put would be: Ravi ";" Kumar
Please help me out with the required mapping changes in XSLT.
Thanks in Advace.
Edited by: ItsUrRock on Mar 23, 2011 11:55 AM
Hi,
Chk this:
<xsl:variable name ="Input">
<xsl:value-of select="xpath"/> (ur xpath expression)
</xsl:variable>
<xsl:if test='contains($Input,".")'>
<xsl:value-of select='translate(name, ".", ";")'/>
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use xpath function translate() and escape the semicolon and the quotes.
<output><xsl:value-of select="translate(//Name,%3B,%25%3B%25)"/></output>
If that escapes do not work google for escape sequences.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The string that you have to convert is in a Field of source structure? If Yes, You can do this by using an UDF in message mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.