Subject: Whitespace problem in IE5 From: Dave Dieno <daved@xxxxxxxxxxxx> Date: Wed, 19 May 1999 18:30:50 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
namespace() function, Elliotte Rusty Harol | Thread | RE: Whitespace problem in IE5, Dave Dieno |
namespace() function, Elliotte Rusty Harol | Date | RE: Whitespace problem in IE5, Dave Dieno |
Month |