473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

XSLT for viewing XML as Tree

I have some XML I want to display in a section of a web page.
I want the XML displayed as a tree.
The way you see XML if you load the file in the browser. It shows the tree
and you can expand/collapse nodes etc.

Is their a way to get the actual transform that does this?
I think I remember some people extracted the xslt from some MS IE dll or
something like that.

http://www.cranesoftwrights.com/reso...tree/index.htm

http://www.codeproject.com/soap/tree...lusingxslt.asp

Nov 16 '07 #1
3 2465
Chuck P wrote:
I have some XML I want to display in a section of a web page.
I want the XML displayed as a tree.
The way you see XML if you load the file in the browser. It shows the tree
and you can expand/collapse nodes etc.

Is their a way to get the actual transform that does this?
I think I remember some people extracted the xslt from some MS IE dll or
something like that.

http://www.cranesoftwrights.com/reso...tree/index.htm

http://www.codeproject.com/soap/tree...lusingxslt.asp
The stylesheet IE uses is not an XSLT 1.0 stylesheet but rather one
written in a working draft predecessor of that language. So it works
only with MSXML 3 or older and I think it also uses JScript geared
towards the IE 4 object model meaning the expansion/collapsing might not
work in other browsers.
You might want to grab the stylesheet Dimitre's XPath Visualizer for
Mozilla uses, see
<URL:http://www.topxml.com/code/default.asp?p=3&id=v20021221025528>,
that should be an XSLT 1.0 stylesheet.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 16 '07 #2
Thanks for Martin's suggestion.

Hello Chuck,

If what you need is the XSLT file which used by IE, you may refer to
http://forums.asp.net/p/1141304/1947706.aspx#1947706
[xslt - viewing XML like that of IE]

Hope this helps. Please feel free to update here again, if there is
anything we can help with. We are glad assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '07 #4

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

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
5
by: Don Garrett | last post by:
I have an XML document at the root of a directory tree that contains relative URIs to resources in a directory tree. During XSLT processing, these URI's can be used without any problems to...
6
by: Prashanth Ellina | last post by:
Hi, I am an XSLT newbie. I need to solve something which I will express in pseudo-code. function f1() { xmltree = <emptydom> addnamevaluepair(xmltree, "size","100")...
3
by: Jack Fox | last post by:
I've never had the need to work with XML, but I believe I now have an appropriate application. I have time-series data in objects organized as a tree that I want an ASP.NET program to write out to...
6
by: Mike P | last post by:
I am quite new to XML and XSLT, and I know you can apply XSLT to XML to display data in an XML file according to the XSLT file, but is it possible to apply an XSLT file to page/s of HTML, so that...
2
by: sebastian.langer | last post by:
Hi! Certainly somebody had my problem before and could give me just some hints, how to solve it: I have an xml file, which contains scientific data in a tree form. The data should be changed...
18
by: yinglcs | last post by:
Hi, I have a newbie XSLT question. I have the following xml, and I would like to find out the children of feature element in each 'features' element. i.e. for each <featuresI would like to...
4
by: simon.a.hulbert | last post by:
Hi, I'm trying to view the following xslt transformation using firefox <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" > <xsl:output method = "xml" indent =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.