The function normalize-space replaces sequences of whitespaces by a single space and trims the provided string. How can I only trim the string without the replacement of whitespaces? There are proprietary solutions like orcl:left-trim, but I am looking for a non-proprietary one.
Example:
<xsl:value-of select="trim(/Car/Description)"/>
should turn
<car>
<description> To get more information look at: www.example.com </description>
</car>
into
"To get more information look at: www.example.com"
A solution using just xslt 1.0 templates:
Test code:
Output: