title: In xslt how to find if text contains full stop at the end
body: <p>Am writing some xslt script (version 1.0) in BizTalk mapper, VS2010</p>
  
  <p>Now in input xml file I have the following tags</p>
  
  <pre><code>&lt;STUDENTS&gt;
  &lt;STUDENT&gt;&amp;lt;DETAILS NAME="Tuna"&amp;gt;These are student. details. of Student1.&amp;lt;/DETAILS&amp;gt;&lt;/STUDENT&gt;
  &lt;STUDENT&gt;&lt;/STUDENT&gt;
  &lt;/STUDENTS&gt;
  </code></pre>
  
  <p>Now for each  above, output has to look as follows</p>
  
  <pre><code>&lt;INFO NAME="Tuna"&gt;These are student. details. of Student1&lt;/INFO&gt;
  </code></pre>
  
  <p>Am using the following script.</p>
  
  <pre><code>&lt;xsl:for-each select="//STUDENTS/STUDENT"&gt;
  &lt;INFO&gt;
  &lt;xsl:attribute name="NAME"&gt;
      &lt;xsl:value-of select="normalize-space(substring-before(substring-after(.,'NAME=&amp;quot;'),'&amp;quot;'))" /&gt;
    &lt;/xsl:attribute&gt;
    &lt;xsl:variable name="replace1" select="normalize-space(substring-before(substring-after(.,'&amp;gt;'),'&amp;lt;/DETAILS&amp;gt;'))" /&gt;  
  &lt;xsl:value-of select="translate($replace1,'.','')"/&gt;  
  &lt;/INFO&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>My ouput looks like follows</p>
  
  <pre><code>&lt;INFO NAME="Tuna"&gt;These are student details of "Student1" &lt;/INFO&gt;
  </code></pre>
  
  <p>But I want remove only "." which appears at end. How do I do that? Any suggestions are really appreciated.</p>
  
  <p>Thanks in advance.</p>