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

Subject: Re: How to get the trailing spaces in a string?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Jul 2024 12:48:19 -0000
On 08/07/2024 14:41, Roger L Costello costello@xxxxxxxxx wrote:
Hi Folks,

The value of this element contains trailing spaces:

<Airport_Name>LOWELL FLD </Airport_Name>

A few days ago Martin showed how to obtain the string before the trailing spaces. (Thanks Martin!)

Now I need to obtain the trailing spaces. How to do that?


One way would be e.g.

analyze-string(Airport_Name, ' +$')/*:match/string()

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