By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,677 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,677 IT Pros & Developers. It's quick & easy.

How to convert tab characters in XSLT

P: n/a
Hello mates,

I have to convert an XML document into HTML output through the
use of XSLT. I am receiving some text content which contains tab
characters. I have to display this content into TD. How should I
create HTML tab? I can identify tabs in XSLT. But, how to display
tabs exactly in HTML? Can anybody help?

Murtaza.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Murtaza Tinwala wrote:

I have to convert an XML document into HTML output through the
use of XSLT. I am receiving some text content which contains tab
characters. I have to display this content into TD. How should I
create HTML tab? I can identify tabs in XSLT. But, how to display
tabs exactly in HTML? Can anybody help?


Whitespace in HTML is usually collapsed, what you can do is use the HTML
<pre> element to have whitespace rendered e.g.
<td>
<pre>
<xsl:value-of select="yourElement" />
</pre>
</td>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.