Re: select text nodes within a loop

Subject: Re: select text nodes within a loop
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Wed, 30 Aug 2000 07:09:47 -0700
| 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


Current Thread