I want to trim whitespace left and right
in :<xsl:value-of select="Datas/Data[@key='Name']/string"/>
How can I do that?
normalize-space(Datas/Data[@key='Name']/string)
might suffice, it will trim white space and the start and end. It does however also collapse any white space in between to a single space, I don't know whether you want that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With