xsl-list
[Top] [All Lists]

[xsl] normalize-space()?

2006-10-31 12:01:03
I'm currently trying to get rid of beginning and trailing white spaces.
I think the normalize-space() function should do this, however I'm not
sure if it'll work the way I'm trying to use it.  An example would
probably be the easiest way to explain. 

<xsl:template match="covers">
        [<xsl:apply-templates select="normalize-space(covers)" />]
</xsl:template>

Currently this doesn't pull anything from the covers tag, all I get is
empty [].

When I leave out the select portion of the expression I get [ LB 101, LR
1332 ].  What I want is [LB 101, LR 1332]. Is the normalize-space
function the way to go to achieve this?

Thanks



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>