This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: preserveWhiteSpace=true; not working
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] preserveWhiteSpace=true; not working
- From: "Clapham, Paul" <pclapham at core-mark dot com>
- Date: Thu, 12 Apr 2001 11:48:08 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Because you're viewing HTML in a browser. HTML compresses all white space
to a single space when displayed. If you want to preserve the spaces when
displayed, you need to change them to non-breaking spaces (  is the
easiest XML format).
PC2
-----Original Message-----
From: Peter Tsantes [mailto:PTsantes@Tradescape.com]
Sent: April 12, 2001 11:28
To: 'XSL-List@lists.mulberrytech.com'
Subject: [xsl] preserveWhiteSpace=true; not working
I am using MSXML3 running in replace mode on NT.
I'm doing a server side parse of XML and XSLT in VB as such(viewing in
IE5.5):
</snip>
My xml contains white space and line breaks like this:
<?xml version="1.0"?>
<Careers_List xml:space="preserve" >
<joblisting>
<id>1</id>
<jobTitle>Java Developer</jobTitle>
<Description>We are seeking
ng an experienced Java Developer to take
charge of Interface
Development
</Description>
</joblisting>
</Careers_List>
The problem is my Description element text still outputs like this:
"We are seeking an experienced Java Developer to take charge of Interface
Development"
No white space or line breal preservation. Why is this happening?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list