RE: [xsl] Using normalize-space to test for characters in text nodes

Subject: RE: [xsl] Using normalize-space to test for characters in text nodes
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Wed, 3 Nov 2004 11:09:32 -0000
> There are a bunch of 'white space like' characters in the
> 2000 area. http://www.cs.tut.fi/~jkorpela/chars/spaces.html
> lists a few.
>
> Unsure how fussy you want to be Andrew?

Not that fussy :)

The issue stems from where one of my stylesheets should only output an
attribute provided it had content - quite ofter you would get @label="
", it just so happens that one author decided to use @label="&#160;",
which messed up my output.

It's interesting because afaict the usual methods to check if a string
is empty would all fail in this case.

Current Thread