Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How to convert tab characters in XSLT

Reply
Thread Tools

How to convert tab characters in XSLT

 
 
Murtaza Tinwala
Guest
Posts: n/a
 
      08-18-2004
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.
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      08-18-2004


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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: convert unicode characters to visibly similar ascii characters Laszlo Nagy Python 6 07-02-2008 04:42 PM
Re: convert unicode characters to visibly similar ascii characters Terry Reedy Python 0 07-01-2008 07:46 PM
How to convert HTML special characters to the real characters with a Java script Stefan Mueller HTML 3 07-23-2006 10:09 PM
Convert Raw Text Escaped Characters to Characters nicholas.wakefield@gmail.com Java 2 07-11-2005 09:17 PM
help-> xslt transformation to pdf (chinese characters changed to # characters) omegaman XML 1 09-21-2004 10:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57