[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Why processor or stylesheets puts strange output


Subject: Re: [xsl] Why processor or stylesheets puts strange output
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 23 Aug 2002 14:41:52 -0600 (MDT)

Wendell Piez wrote:
> At 12:19 PM 8/23/2002, Mike wrote:
> >TSchutzerWeissmann@xxxxxxxxxxxxxxxx wrote:
> > > <xsl:template match="text()[
> > >    string-length(translate(.,'&#x9;&#xA;&#xD;&#x20;',''))=0]"/>
> >
> >This can be shortened to
> >
> >   <xsl:template match="text()[translate(.,'&#x9;&#xA; ','')]"/>
> 
> And what of text()[normalize-space()] ?

Indeed. I forgot what the original purpose was :)

> >The abomination that is XPath 2.0 will change this (string 'true' or
> >'1' will be true) so you'll need to put the string-length() back in
> >someday
> 
> That is abominable, ugh.

Actually, now that I think about it, 'true' and '1' are already true,
aren't they? The abominable part is that 'false' and '0' will be false!


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



Current Thread
Keywords