[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Output a default value for an empty node
> test="string-length(member_name)=0" > > is probably fractionally better written as > > test="string(member_name)" [snip] > Or perhaps best of all is to directly code in xpath what you > said in English, that there is no text child (rather than > saying the effective string value is the empty string) that would be > > test="not(member_name/text())" I thought the usual answer to this kind of query was to use normalize-space(): <xsl:if test="normalize-space(member_name)"> Has this changed or is this a different case?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|