[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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()[not(translate(.,'	
 ',''))]"/>
----------------------------^^^
<xsl:template match="text()[not(normalize-space())]"/>
----------------------------^^^
Regards,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Why processor or stylesheets puts strange output
Subject: Re: [xsl] Why processor or stylesheets puts strange output From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Sun, 25 Aug 2002 23:24:51 +0200 |
Wendell Piez wrote: > At 12:19 PM 8/23/2002, Mike wrote: > >> TSchutzerWeissmann@xxxxxxxxxxxxxxxx wrote: >> > <xsl:template match="text()[ >> > string-length(translate(.,'	

 ',''))=0]"/> >> >> This can be shortened to >> >> <xsl:template match="text()[translate(.,'	
 ','')]"/> > > > 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(.,'	

 ',''))=0]"/>
<xsl:template match="text()[not(translate(.,'	
 ',''))]"/>
----------------------------^^^
<xsl:template match="text()[not(normalize-space())]"/>
----------------------------^^^
Regards,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Why processor or styleshe, Wendell Piez | Thread | RE: [xsl] Why processor or styleshe, abradoom |
Re: [xsl] Building cross-referenced, G. Ken Holman | Date | Re: [xsl] 8bit ascii encoding, Michael Fuller |
Month |