title: XSLT call template in BizTalk Mapping
body: <p>I receive a flat file and a Oracle view binding, I need to map schema from these two in to a send flat file. Employee Id is the common field in both the flat file and the Oracle view. I need to check the employee ID on both the input schema also check if the PREFERREDLASTNAME field in the Oracle is not null then send the PREFERREDLASTNAME from the Oracle view otherwise send the Last_Name from the file schema.</p>
  
  <p>Here I am using the XSLT Call template. But I am not sure how to check if the PREFREEDEDLASTNAME is not NULL then set Last_Name as PREFREEDEDLASTNAME otherwise set the Last_Name from the input flat file.</p>
  
  <p>Below is the Map
  <a href="https://i.stack.imgur.com/NaqRC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NaqRC.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8IVBA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8IVBA.png" alt="enter image description here"></a></p>
  
  <pre><code> &lt;xsl:template name="GetLastNameVW_EMP_JOB_DEPT"&gt; 
   &lt;xsl:param name="ID" /&gt; 
   &lt;xsl:element name="Last_Name"&gt;
   &lt;xsl:value-of select="//s0:VW_EMP_JOB_DEPTRECORDSELECT[s0:EMPLOYEE_ID = $ID]/s0:PREFERREDLASTNAME" /&gt;
   &lt;/xsl:element&gt; 
   &lt;/xsl:template&gt;
  </code></pre>
  
  <p>With the above XSLT it looks only for the Employee_Number = EMPLOYEE_ID in both the schemas and sets the Last_Name as PREFERREDLASTNAME and leaves blank if they are not equal. How can I modify my XSLT to perform the condition </p>