473,662 Members | 2,536 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 1211
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="pres erve"
--
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
1496
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 / Formatting. This is a big annoyance because with a rather large page it can be very time consuming to reformat by hand, and very time consuming to search through and work with the mangled formatting that often happens do switching to the design...
1
2568
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: ------------------ string thing = "";
10
3153
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 ld_tot_pet_clean_fee_calc As Double ld_tot_pet_clean_fee_calc = li_net_total_calc * 0.0075 ld_tot_pet_clean_fee = lo_misc_func.FormatMC(ld_tot_pet_clean_fee_calc, "D") Session("tot_pet_clean_fee") = lo_misc_func.FormatMC(ld_tot_pet_clean_fee, "D")...
0
1217
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 html/xhtml after applying formatting. how can this be done?
4
8324
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 date column always shows the date and time while I just want the short date. I have tried applying a format string {0:d} but to no avail. I saw a lot of posts regarding the htmlencode property but I do not know how to turn that off for a...
1
1701
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 portions of text. I don't need anything complex, bold, italic and font-size would be enough. -- (\__/) (O.o)
4
4879
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 subform the pencil symbal appears next to the new record the next "pending" record that appears below that, with the asterix next to it, turns red also its only when you refresh the form it goes back to being white is there anyway of stopping the bottom...
1
1626
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 am selecting the part "Translation Malathi" and applying any formatting (for suppose center align) to that then after saving, it is inserting extra tags as follows so that the entire text in <span class="subtitle"> is also getting changed according...
5
3519
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 tried a few other simple expressions in Conditional Formatting too, such as: an empty field] = "" an empty field] = null
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5654
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.