How to remove leading spaces in xslt 1.0

Gayara Kumari 65 Reputation points
2023-02-10T07:56:06.4033333+00:00

Hi,

I want to remove the space in front of the string. Please advise.

This is the code I tried:

  

Output I am getting:

User's image

I need to remove the leading spaces.

Expected Output:

User's image

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 122.5K Reputation points
    2023-02-10T08:11:49.9766667+00:00

    Try this: <xsl:value-of select="normalize-space(Shipment/PONumber)"/>.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.