-4

For example I have a string like "0002187433" from that @0002187433 I need to remove first 3 digits by using XSLT and output I should be getting like "2187433".

I have tried like <xsl:value-of select="substring(0002187433,3,string-length(0002187433)-7)" disable-output-escaping="yes"/> but it is not working.

halfer
  • 19,824
  • 17
  • 99
  • 186
kamal
  • 1
  • 1
  • 3
  • 3
    Possible duplicate of [Formatting string (Removing leading zeros)](https://stackoverflow.com/questions/8801289/formatting-string-removing-leading-zeros) – Jakob Nov 07 '17 at 07:43
  • 3
    "Request you to give me response asap"... LOL – pavel Nov 07 '17 at 07:44
  • Please read [Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers?](//meta.stackoverflow.com/q/326569) - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions. – halfer Nov 07 '17 at 12:02

1 Answers1

1

Try this:

<xsl:value-of select="substring('0002187433', 4)" />
Rupesh_Kr
  • 3,395
  • 2
  • 17
  • 32