xsl-list
[Top] [All Lists]

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

2004-11-03 04:09:32

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=" ",
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.