0

I have employee ids where the number of characters vary from 4 to 6. I want to have the final output length of 7. The employee id should be padded with 9's to the left.

Eg. Employee ID input

1234 23456 567894

Output Employee ID to look like

9991234 9923456 9567894

This is a Workday requirement.

Please can someone help with the XSLT statement for this.

Thanks

Sachin
  • 1

1 Answers1

1

Try:

<xsl:value-of select="concat(substring('9999999', 1 + string-length(@ID)), @ID)"/>
michael.hor257k
  • 113,275
  • 6
  • 33
  • 51