[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why processor or stylesheets puts strange output

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.