Sign In/My Account | View Cart  
advertisement

Article:
 Controlling Whitespace, Part Three
Subject: White spaces not outputted in printout
Date: 2006-06-28 19:12:04
From: KermanMistry

Hi, I'm using a style sheet to format my xml file.
The xml file contains the following line:
<tmp_field_one> Here is some text after 4 tabs</tmp_field_one>


and the xsl file contains the following line to render this text on the screen:
<div style="left: 0.0ex; position: absolute"><xsl:value-of select="./tmp_field_one"/></div>


Even though there are 4 tab characters prefixing the text, the output on the screen as well as the printout shows the text without any prefixing tabs. The same happens if I replace tabs with spaces or a combination of both.


Please help me with printing the tabs and spaces as they are in the xml file.


Many thanks.


Previous Message Previous Message   Next Message No Next Message


Full Text Titles Only Newest First

Sponsored By: