How to convert tab characters in XSLT

M

Murtaza Tinwala

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.
 
M

Martin Honnen

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top