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

preserving whitespace in output using MSXML3

Subject: preserving whitespace in output using MSXML3
From: "Bruce Snyder" <bsnyder@xxxxxxxxxxxx>
Date: Fri, 14 Jul 2000 11:07:55 -0600
bruce snyder
Here is a chunk of an XSL that I've written (notice the indentation):
<xsl:template match="ResumeData/phones">
<var name='phones'>
<xsl:variable name="phone_count" select="count(.//phone)"/>
	<array length='{$phone_count}'>
<xsl:for-each select="phone">
		<var name='kind'>
			<string><xsl:value-of select="./@kind"/></string>
		<var name='phone'>
			<string><xsl:value-of select="."/></string>

Here is the output when applying this chunk XSL through MSXML3(notice
that there is no indentation):
<var name="phones"><array length="2"><struct><var
name="kind"><string>home</string></var><var name="phone"><string>(055)
123 4567</string></var></struct><struct><var
name="kind"><string>palace</string></var><var name="phone"><string>(000)
000 0001</string></var></struct></array></var>

I'd like the output from the XSL to contain the indentation, but it
doesn't. This XSL will only be applied using MSXML3 in the final
product. How can I preseve this whitespace (indentation) in the output? 


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

Current Thread


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.
First Name
Last Name
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.