This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Accessing text between nodes
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Accessing text between nodes
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 27 Jun 2001 17:07:53 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Conversely, if you added some more text within <Node> after
> those <SubNode>
> elements, text() does not get the added text. text()[3] does
> get that added
> text, though (text()[2] gets whitespace). That's with saxon,
> msxml3 returns
> nothing for text()[3]. Hmm - Mike, which one is right (it
> must be saxon!)?
>
MSXML3 handles whitespace correctly if you take the trouble to build the DOM
with the preserveWhitespace property set to true. By default, it strips the
whitespace nodes before the XSLT engine gets to see them.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list