> From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] > > Morrison, John wrote: > > >>From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > >> > >>>the XSP source : about half of produced SAX events are > >>> > >>blank strings. > >> > >>Ok, you already have a volunteer for this. Good luck, John! :) > >> > > > >Woa there - I said I'd help ;) > > > >Somebody needs to come up with the idea though... Question, > >is it just a case of a normalise-space(.) in the right place...? > > > >J. > > > Merging your idea an Berin's one, maybe a : > > <xsl:if test="normalize-space(string-length(string(.))) > 0">
IIRC, string-length() does string() automatically. So, string() could be omitted. Vadim > <!-- do the real stuff --> > </xsl:if> > > in the handling of text nodes in xsp.xsl could do the trick. But it will > remove *all* whitespace-only text nodes without having the possibility > to keep them if needed. > > Should be worth a try... > > Sylvain > > -- > Sylvain Wallez > Anyware Technologies - http://www.anyware-tech.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]