![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - The normalize-space [Thread Next] Re: The normalize-spaceTo: NULL Date: 12/12/2006 12:56:00 PM
normalize-space doesn't remove spaces, just trims off the ends and compacts
multiple whitespace to a single character.
Perhaps you can use translate(' ', '_') to change all spaces to an
underscore, maybe after normalize-space?
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
<kollatjorva@g...> wrote in message
news:1165924849.844633.228690@j......
> Hi all
>
> I'm trying to get a value from an xml node 'Publisher' use the value as
> a name of an .css class. This works fine until I get a value from the
> Publisher node with white space in it.
> I've been trying to use normalize-space function on this but I can't
> make this work
>
> here is what I'm trying to do
>
> <xsl:attribute name="class">color<xsl:value-of
> select="normalize-space(Publisher)"/></xsl:attribute>
>
> Can anyone help me, I've spent to much time on this already..
> Thanks
> K.
>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
