[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: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sun, 25 Aug 2002 23:24:51 +0200
translater
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()] ?

Maybe I'm to pedantic, but only *almost* ;-)

Your expression is the same as Mike's, but his one not the same as Tom's expression.

<xsl:template match="text()[
     string-length(translate(.,'&#x9;&#xA;&#xD;&#x20;',''))=0]"/>


<xsl:template match="text()[not(translate(.,'&#x9;&#xA; ',''))]"/>


----------------------------^^^

<xsl:template match="text()[not(normalize-space())]"/>

----------------------------^^^

Regards,

Joerg



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.