Re: [xsl] XSLT: check if value is whitespace(s)

Subject: Re: [xsl] XSLT: check if value is whitespace(s)
From: Ralph Holz <ralph.holz@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Aug 2004 15:50:57 +0200
David,

David Carlisle wrote:

test="normalize-space($x)"


if $x is white, normalize-space($x) is the empty string, and tests as false() in a boolean test.

Thanks!


I wasn't sure if a value that consists of a single or more blanks (user input) would count as whitespace and could be treated with normalize-space.

Ralph

Current Thread