Re: Unable to get text() of node
T:\ftemp>xslt-msxsl josten.xml josten.xsl con <?xml version="1.0" encoding="UTF-16"?><foo> text. </foo> T:\ftemp>
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>
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format