xsl-list
[Top] [All Lists]

RE: XSLT: check if value is whitespace(s)

2004-08-11 08:04:20

Following up myself, the situation is that I need to check 
if a given 
value consists of one or more blanks. Not sure if these 
actually count 
as whitespaces?

There is no unicode character called blank.
If you mean a space character (32) then that is white
If you mean  (for example) a non breaking space (160) that is 
non-white.


I get upset by people spelling "whitespace" as two words, as if it described
that subset of spaces that are white (as distinct from those that are green
or blue). In fact, of course, there are four whitespace characters and only
one space character. There are other characters whose rendition uses no ink,
and which also use the word "space" in their names, that are neither space
nor whitespace characters, for example zero-width-space. 

Don't blame me.

Michael Kay