473,507 Members | 12,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML formatting after applying XSL to XML

Hi,

Hopefully someone can answer this; I am using aspx and c# to format XML
using an XSL transform, the output is then written to the the response of the
webform. When the page first loads the layout is not like it is described in
the XSL... there is too much whitespace with gaps between things where there
should be no gaps. If I save the html source and reopen it, it is as I want -
formatted perfectly with no whitespace. If I load the page and then hit
Ctrl+N (I'm using IE 6) the new window has the correct formatting!

Is there anything simple I have overlooked because I can not discover the
reason for the ill-formatted initial web form?!

Thanks in advance for any help,

Simon
Nov 12 '05 #1
2 1203
Hello!
Hopefully someone can answer this; I am using aspx and c# to format XML
using an XSL transform, the output is then written to the the response of the
webform. When the page first loads the layout is not like it is described in
the XSL... there is too much whitespace with gaps between things where there
should be no gaps. If I save the html source and reopen it, it is as I want -
formatted perfectly with no whitespace. If I load the page and then hit
Ctrl+N (I'm using IE 6) the new window has the correct formatting!

Is there anything simple I have overlooked because I can not discover the
reason for the ill-formatted initial web form?!


This sounds like an IE Problem... surely your code did not change since
you opened the new window.

Maybe you should use <xsl:output indent="no" .../> and enclose all
Text-Fragments in your XSLT in <xsl:text .../> Elements.
If you want to force some whitespace, use xml:space="preserve"
--
Pascal Schmitt
Nov 12 '05 #2
This sounds like an IE Problem... surely your code did not change since
you opened the new window.


Could it be a timing issue?

If you're streaming the data slowly to the browser, then I guess it may
screw up the display, but if it reads it all in quickly then it's fine.

You could investigate by buffering the response.

Just a thought...

Griff
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1487
by: Seth | last post by:
How can I completely turn off the auto formatting of Html in Visual Studio 7? I have tried all possible combinations (at least I think I have) of the Tools / Options / Text Editor / HTML XML /...
1
2556
by: Grant | last post by:
Hi, While iterating through a loop and building a string is it possible to format certain string value? the completed string eventually gets passed to a rich TextBox. for example: ...
10
3136
by: Coleen | last post by:
Hi all :-) I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML. Here is the snippet of code for the cell I'm trying to format: Dim...
0
1208
by: psid | last post by:
Displaying HTML/XHTML from source XML file i am having an xml file i want to display the contents of the xml file in a web browser control in winforms however i want to display it as...
4
8313
by: Ken Wigle | last post by:
All, I would be very grateful for any help on this question. I have an application in asp.net 2.0 where I dynamically create a datatable and then bind that to a gridview. Unfortunately, the...
1
1698
by: Ivan Voras | last post by:
Hi! Is there an easy off-the-shelf way to get HTML formatting inside the TextArea widget? I've looked at TextBuffer but it appears to have only support for manual applying of attributes to...
4
4863
by: phill86 | last post by:
Hi, I have a sub form that i am applying conditional formatting to. When a certain value is reached it turns the row red this all works fine apart from when i create a new record in the...
1
1615
by: malathib | last post by:
Hi, I am facing a problem in using iframes. For example..<h2><font color="blue"><span class="article-title">Translation</span></font></h2><span class="subtitle">Malathi is a name</span> if i...
5
3511
by: Whizzo | last post by:
Hi all; Any reason why putting: Len()<Len() into the Conditional Formatting of a control isn't applying it in a report? Even when the length of is indeed shorter that the length of ? I've...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.