This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Identifying empty elements



normalize-space(.) != '' works.
thanks!
Sridhar





David Carlisle <davidc@nag.co.uk>@mulberrytech.com on 11/08/2000 03:48:28
PM

Please respond to xsl-list@mulberrytech.com

Sent by:  owner-xsl-list@mulberrytech.com


To:   xsl-list@mulberrytech.com
cc:
Subject:  Re: Identifying empty elements



   //SOME_TAG[. !=''] ignores just the first two cases, but selects the
third
   one containing the white-space  .


either list SOME_TAG in the  strip-space elements list, in which case
white space nodes appearing as children of SOME_TAG won't appear in the
input tree, so your current test will work, or use

//SOME_TAG[normalize-space(.) != '']

David







_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]