This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Accessing text between nodes


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]