HighTechTalks DotNet Forums  

XSLT for viewing XML as Tree

Dotnet XML microsoft.public.dotnet.xml


Discuss XSLT for viewing XML as Tree in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Chuck P
 
Posts: n/a

Default XSLT for viewing XML as Tree - 11-16-2007 , 12:37 PM






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


Reply With Quote
  #2  
Old   
Martin Honnen
 
Posts: n/a

Default Re: XSLT for viewing XML as Tree - 11-16-2007 , 12:48 PM






Chuck P wrote:
Quote:
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/


Reply With Quote
  #3  
Old   
Wizfrog
 
Posts: n/a

Default Re: XSLT for viewing XML as Tree - 11-18-2007 , 06:04 PM





try this:

http://www.15seconds.com/issue/010921.htm

Reply With Quote
  #4  
Old   
WenYuan Wang [MSFT]
 
Posts: n/a

Default RE: XSLT for viewing XML as Tree - 11-20-2007 , 07:32 AM



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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.