[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Seek an XPath expression that removes trailing spaces
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 6 Jul 2024 12:51:17 -0000
On 06/07/2024 14:48, Roger L Costello costello@xxxxxxxxx wrote:
> Hi Folks,
>
> I want to convert this:
>
> <Airport_Name>LOWELL FLD                    </Airport_Name>
>
> to this:
>
> <name>LOWELL FLD</name>


Use `replace` e.g.

 B  Airport_Name => replace('\s*$', '')

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member