RE: [xsl] Accessing text between nodes

Subject: RE: [xsl] Accessing text between nodes
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 27 Jun 2001 17:07:53 +0100
> 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


Current Thread