This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: select text nodes within a loop
- To: xsl-list at mulberrytech dot com
- Subject: Re: select text nodes within a loop
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Wed, 30 Aug 2000 17:05:33 +0200 (MET DST)
- Reply-To: xsl-list at mulberrytech dot com
> How can I test is a node is a text or comment node?
>
> <xsl:for-each select="text()|comment()">
> <xsl:if test="EXPRESSION TO TEST IF THIS IS A TEXT() NODE">
> </xsl:if>
> </xsl:xsl:for-each>
<xsl:if test=".[self::text()]">
Bye,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list