473,569 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transform to HTML

Does anyone know where I can find a xslt file to transform xml into
html or how to open a new browser window from asp.net to display the
xml. I have a string that contains the xml that is generated from an
object. I want to display the xml to the user in the browser. The
format can change so writing a custom xsl is time consuming. I just
want to display the xml as would be done if you open up an xml file in
the web browser. However, must of the xsl files that exist on a
windows pc for doing this are specifically designed to be run by the
browser and don't use the standard schema that is required by
XslTransform. I want the data to be displayed in a nicely color and
formated XML format. If anyone has any help for me on this it would
be greatly appreciated.
Nov 12 '05 #1
2 3961
Adam G. wrote:
Does anyone know where I can find a xslt file to transform xml into
html or how to open a new browser window from asp.net to display the
xml.


Hi,

To get the style sheet used by IE just type
"res://msxml3.dll/DEFAULTSS.xsl" or "res://msxml.dll/DEFAULTSS.xsl" in
IE's address bar (see
http://support.microsoft.com/default...;EN-US;q282127) or
download this
http://www.peterprovost.org/weblog/c.../defaultss.xml (rename
to .xsl) or this
http://www.peterprovost.org/weblog/c...defaultss.xslt .

You could also have a look there:

http://www.informatik.hu-berlin.de/~...T/#xmlverbatim
http://skew.org/xml/stylesheets/treeview/html/

--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr
Nov 12 '05 #2
* Adam G. wrote in microsoft.publi c.dotnet.xml:
Does anyone know where I can find a xslt file to transform xml into
html or how to open a new browser window from asp.net to display the
xml. I have a string that contains the xml that is generated from an
object. I want to display the xml to the user in the browser. The
format can change so writing a custom xsl is time consuming. I just
want to display the xml as would be done if you open up an xml file in
the web browser. However, must of the xsl files that exist on a
windows pc for doing this are specifically designed to be run by the
browser and don't use the standard schema that is required by
XslTransform . I want the data to be displayed in a nicely color and
formated XML format. If anyone has any help for me on this it would
be greatly appreciated.


You should be able to direct the browser to a script that returns the
XML document with a proper MIME type. If that does not work for you,
you would need an XSLT that does what you want, I think someone ported
the XSLT that does this in Internet Explorer to XSLT 1.0 and there are
some other attempts for such functionality, for example
http://www.informatik.hu-berlin.de/~...T/#xmlverbatim
Nov 12 '05 #3

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

Similar topics

7
2086
by: Peter | last post by:
I have noticed a difference in the processing of XSL transforms between dotnet and MSXML. Dotnet formats the resulting output differently, and since we use the <pre> tag in the HTML output it makes a big difference. What is in fact correct here? I don't see that the XSL transform engine should reformat the output in this way, and would like...
5
3592
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an instruction document (not data based) - same as using an xml web control. The resulting html is on the client? but what about the server side of...
2
1669
by: Aaron Clauson | last post by:
Hi, I just tried to run a piece of code working with .Net 1.0 after compiling it with 1.1. It failed and I tracked it down to the XSLT transform method outputting invalid XML. The problem only seems to occur if the XML has an html node. When it does so the transform method seems to take it into its own hands to assume you want non-compliant...
1
1569
by: Bob Yuan | last post by:
Hi, I am working on a asp.net project that takes a xml source and use XslTransform.transform to generate a xhtml output. The problem with using XslTransform is that it automatically reformats the output as HTML instead of xhtml. For example, if the xslt file contains <img src="..." />, the result html file is <img src="..." > and this is...
3
1827
by: vitaly.tomilov | last post by:
I'm using an ASP.NET form to display data from my database table, and I'm doing it in the following way: XmlDataDocument doc = new XmlDataDocument(mydataSet); XPathNavigator nav = doc.CreateNavigator(); XslTransform xslTran = new XslTransform(); xslTran.Load("Transform.XSL"); xslTran.Transform(nav, null, Response.Output, null); This...
0
2142
by: dnphamus13 | last post by:
I'm new to this and drowning right now. I would like to put my database online for viewing. I managed to do the filtering but i need to do PAGING as the XML doc get bigger. From what i understand this is what I need to do; transform the current XML doc with the filterring xsl, then somehow add the paging xsl. That's the part i'm having trouble...
1
1847
by: Mike Hofer | last post by:
I've got two statements in my code that are both generating weird, weird, weird messages: The first one was, Dim document As System.Xml.XmlDocument Dim navigator As System.Xml.XPath.XPathNavigator Dim transform As System.Xml.Xsl.XslTransform .. ..
6
4952
by: Vijai Kalyan | last post by:
Hello, I am trying to use std::transform to take in a collection of strings, transform them and insert the result into an output container. So, I wrote something like this: std::wstring doSomething (std::wstring const& str) { // do something to copy of str and return new value }
12
10076
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b) ..... // xsl contents abc.aspx?p1=v1&amp;p2=<xsl:value-of select="$v2" />
3
7317
KevinADC
by: KevinADC | last post by:
If you are entirely unfamiliar with using Perl to sort data, read the "Sorting Data with Perl - Part One and Two" articles before reading this article. Beginning Perl coders may find this article uses unfamiliar terms and syntax. Intermediate and advanced Perl coders should find this article useful. The object of the article is to inform the...
0
7701
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...
0
7615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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. ...
1
7677
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...
0
7979
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...
0
6284
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...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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...
1
2115
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 we have to send another system

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.