Subject: Re: select text nodes within a loop From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 30 Aug 2000 17:05:33 +0200 (MET DST) |
> 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@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: select text nodes within a loop, David Carlisle | Thread | Re: select text nodes within a loop, xsl list |
counting leaf nodes, Perry Roland | Date | Re: select text nodes within a loop, David Carlisle |
Month |