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

Re: Unable to get text() of node

Subject: Re: Unable to get text() of node
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 Jan 2006 08:13:12 -0500
msxml.dll 8.0.7002.0
At 2006-01-23 14:04 +0100, Geert Josten wrote:

T:\ftemp>xslt-msxsl josten.xml josten.xsl con
<?xml version="1.0" encoding="UTF-16"?><foo>
  text.
</foo>
T:\ftemp>

Interesting, which version of MSXML are you using?

8.0.7002.0 (according to the version properties report of msxml.dll in my c:\windows\system32 directory)


At 2006-01-23 14:02 +0100, Geert Josten wrote:

$ msxsl -xw  wspace.xml wspace.xsl
<?xml version="1.0" encoding="utf-8"?><foo>
   text.
</foo>
$ msxsl   wspace.xml wspace.xsl
<?xml version="1.0" encoding="utf-8"?><foo>
   text.
</foo>

So msxsl is not stripping whitespace by default? That would confirm my statement.

You've got it backwards ... msxsl strips white-space-only text nodes by default and is not preserving them, thus producing the different results from Xalan, Saxon and most other processors which are conformant in this regard.


I'm unfamiliar with David's incantations so I cannot comment on his arguments.

My incantation is a Windows Scripting Host script that is freely downloadable from the "Free resources" link through our home page linked in the trailer below. It just uses the currently loaded DLL.

I hope this helps.

. . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:  Denver,CO March 13-17,2006
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.