RE: [xsl] Collapsing run-on tag chains not working in saxon or xa lan

Subject: RE: [xsl] Collapsing run-on tag chains not working in saxon or xa lan
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Tue, 2 Nov 2004 18:51:59 -0600
On the client there is a way, using version-specific MSXML class instances.
But that restricts you to having to be able to control the client machines,
in this case probably only Intranets where you can control which MSXML each
client has installed, or extranets where you ask each client to install say
MSXML 4.0 prior to running your application.

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Tuesday, November 02, 2004 5:03 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Collapsing run-on tag chains not working in saxon or xa
lan


> with mxsl.exe is that it shows the output with spaces inserted after 
> each

most likely not spaces but zero bytes, it outputs in utf16 by default. so
for ascii you get a zero byte between each non zero byte.

> OK, thanx Michael and David, let me see if we can fix that problem 
> using
> msxsl.exe:

There is no problem getting msxsl to do the right thing, you just get msxml
parser to act in a conformant way by setting its preservewhitespace property
to true (I think the msxsl wrapper has a command line switch for this) or it
is just a line in the API, the main thing it kills is the application that
XML was designed for: serving XML to be styled on the client browser. If you
serve xml to IE and style it via the xml-stylesheet PI then there is no API
to ask for a conformant parser, so you get a non conformant one and you lose
word spaces.

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is powered
by MessageLabs. For more information on a proactive anti-virus service
working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread