This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why processor or stylesheets puts strange output


Wendell Piez wrote:
> At 12:19 PM 8/23/2002, Mike wrote:
>
>> TSchutzerWeissmann@uk.imshealth.com 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]