cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using substring in the XPATH expression for Receiver Determination

matt_austin
Explorer
0 Likes
2,551

Hello, I need a little help please. In my receiver determination, I have a condition and I need to do a "not like" check. Basically, if the first three positions of the source field does not start with a specific code, then I need to execute the condition. The condition editor does not support a "not like" operand, so I went to the XPATH expression editor. I tried to used the XPATH substring function to get the first three characters and then do a "not equal" operand, but it doesn't appear to work. There are not any runtime errors, but the condition is not executing. Any ideas on this? Does the XPATH expression support the substring function?

View Entire Topic
Former Member
0 Likes

Matt

First collect the first three characters into a variable using <xsl:i="substring(p2:MT_STUD_SORC/Records/Student/test,1,3)"/>. Now you give the value of i to if condition (after checking your characters)in mapping editor. You specify if it is true then go ahead else you dont pass it. For further info. go through the url:

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

---Satish