Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

space creeping into <td> elements

Status
Not open for further replies.

mountainbiker

Programmer
Aug 21, 2002
122
GB
Basically, my XSLT reads

Code:
<td><img...></td>

however, the HTML output reads

Code:
<td>
    <img...>
</td>

Now, if <xsl:eek:utput> is set to indent=no, then the problem is cured. Unfortunately, I require this &quot;pretty-printing&quot; for human-readability of the beginning meta elements.

This &quot;space creeping&quot; I know is a problem of HTML; however, is there a clean/simply way to preserve the formatting actually like the first example above?


 
I created a template to handle the output of each TR element. Here I wrap the various parts of the line with CDATA. Sort of messy. Another way I thought would be just call a JavaScript function passing the necessary params and then document.write the table out, but it sounds like another messy way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top