[Home] [By Thread] [By Date] [Recent Entries]

From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 5 Jul 2002 23:48:15 +0100
a white space node is a node.....

If you are sat on book and do <xsl:apply-templates/>
then
<book>
  <chapter>...</chapter>
  <chapter>...</chapter>
  <chapter>...</chapter>
</book>

processes a node set of 7 nodes, 4 of them being white space text nodes
and the chapters are at position 2 4 6.

MSXML by default throws away white space.

use xsl:strip-space to do the same or simpler if you only want to
process chapters, do
<xsl:apply-templates select="chapter"/>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • [no subject]
    • Fox, Michael - Fri, 5 Jul 2002 18:10:38 -0400 (EDT)
      • David Carlisle - Fri, 5 Jul 2002 18:48:20 -0400 (EDT) <=
      • Michael Kay - Sun, 7 Jul 2002 01:59:34 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member