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: "Steve Muench" <smuench at us dot oracle dot com>
- Date: Wed, 30 Aug 2000 07:09:47 -0700
- References: <F278Fr9oD6XMLDthODt00003224@hotmail.com>
- 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">
You can use:
test="self::text()"
to test if the current node is a text node and
test="self::comment()"
to test if the current node is a comment
______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list