[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Accessing text between nodes

Subject: Re: Accessing text between nodes
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 27 Jun 2001 13:06:29 -0400
Re:  Accessing text between nodes
I was running it from Cooktop, i.e., basically the same as from the command
line, I believe.  And I see that text()[2] worked with msxml3.

All this just goes to show that you don't want to rely on exact placement of
nodes, nor of the presence or absence of whitespace, if you can avoid it.
Just reinforcing old lessons, I guess.

Cheers,

Tom P

[Michael Kay]

> > 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.
>



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.