[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Why processor or stylesheets puts strange output
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2002 16:12:32 -0400
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()] ?


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.


Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


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



Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member