|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Whitespace problem in IE5
I'm transforming XML to HTML via XSL using IE5.
I've got an XML element for which I would like to preserve the whitespace
upon output to HTML.
For example, I'd like the following XML fragment:
<codelisting>
<sourceline>
if ( x == "testcase") {
</sourceline>
<sourceline>
o.method(x);
</sourceline>
<sourceline>
}
</sourceline>
</codelisting>
Viewed in the browser as:
if ( x == "testcase") {
o.method(x);
}
My output font is monospaced, and I've tried using both the stylesheet
attribute:
<xsl:stylesheet default-space="preserve"> and the element attribute:
<sourceline xml:space="preserve">.
What I get is:
if ( x == "testcase") {
o.method(x);
}
While the whitespace within a line is preserved, all of the leading
whitespace characters (spaces and tabs) are removed :(
Any ideas?
Thanks,
Dave Dieno
Aeroinfo Systems Inc.
http:\\www.aeroinfo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








