title: xslt query help required for substring
body: <p>May I know how to implement the logic
  Select FIRST 4 Chars &amp; REMOVE chars after &quot;-&quot;. My input is 4536-765 and output should be 4536.
  For this I have implement the substring and it worked fine.
  But if the input is 45-3632 the output should be 4536.
  How should I write a query which will cater both the requirement in XSLT version 1.0</p>