[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Tree view from IE5
Hi Jens, is this what you want? You can get it by intercepting the stream that your server sends to your client. This is IE5 beta 2's script and style sheet. I havn't looked at the IE5 release yet, but I suspect that MS have somehow made it more difficult to intercept the stream. the document I sent was <xdoc>some simple text</xdoc>, and this is how it comes wrapped! Frank <HTML><HEAD> <STYLE> BODY{font:10pt Verdana} .c{cursor:hand} .b{color:red;font-family:FixedSys} .e{margin-left:1em;text-indent:-1em;margin-bottom:3px} .k{margin-left:1em;text-indent:-1em;margin-bottom:3px} .t{color:#444444} .a{color:#444444} .tx{font-weight:bold} .db{text-indent:0px;margin-left:2em;margin-top:0px;margin-bottom:0px;font:9p t Courier;color:#0044BB} .di{font:9pt Courier;color:#0044BB} .d{color:#0044BB} .pi{color:#0044BB} .cb{text-indent:0px;margin-left:2em;margin-top:0px;margin-bottom:0px;font:9p t Courier;color:#0044BB} .ci{font:9pt Courier;color:#0044BB} PRE{margin:0px;display:inline} </STYLE> <SCRIPT> <!-- function initState() { var pres=document.all.tags("PRE"); for (var i=0;i<pres.length;i++) { var cparent=pres(i).parentElement; if (cparent.className=="ci") { if (cparent.children(0).innerText.indexOf("\n")>0) { cparent.className="cb"; cparent.style.display="block"; cparent.parentElement.children(0).className="c"; cparent.parentElement.children(0).children(0).innerText="-"; } } if (cparent.className=="di") { if (cparent.children(0).innerText.indexOf("\n")>0) { cparent.className="db"; cparent.style.display="block"; cparent.parentElement.children(0).className="c"; cparent.parentElement.children(0).children(0).innerText="-"; } } } } function changeState(e) { mark=e.children(0).children(0); if (mark.innerText=="+") { for (var i=1;i<e.children.length;i++) e.children(i).style.display="block"; mark.innerText="-"; } else if (mark.innerText=="-") { for (var i=1;i<e.children.length;i++) e.children(i).style.display="none"; mark.innerText="+"; } } function changeChunkState(e) { mark=e.children(0).children(0); contents=e.children(1); if (mark.innerText=="+") { if (contents.className=="db"||contents.className=="cb") contents.style.display="block"; else contents.style.display="inline"; mark.innerText="-"; } else if (mark.innerText=="-") { contents.style.display="none"; mark.innerText="+"; } } function document_click() { e=window.event.srcElement; if (e.className!="c") {e=e.parentElement;if (e.className!="c") { return; } } e=e.parentElement; if (e.className=="e") changeState(e); if (e.className=="k") changeChunkState(e); } document.onclick=document_click; --></SCRIPT> <SCRIPT FOR="window" EVENT="onload">initState();</SCRIPT> </HEAD> <BODY class="st"><DIV class="e"> <DIV STYLE="margin-left:1em;text-indent:-2em"> <SPAN class="b"> </SPAN> <SPAN class="t"><xdoc</SPAN><SPAN class="t">></SPAN><SPAN class="tx">some simple text</SPAN><SPAN class="t"></xdoc></SPAN> </DIV></DIV> </BODY> </HTML> ----- Original Message ----- From: Lippmann, Jens <LippmannJ@M...> To: <xml-dev@i...> Sent: Monday, March 22, 1999 9:01 AM Subject: Tree view from IE5 >Is there a way to "borrow" the stylesheet that creates the XML tree in IE5 >for XML files without an attached stylesheet, or is the tree hardcoded into >the msxml.dll? > >Jens > > > >xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... >Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 >To (un)subscribe, mailto:majordomo@i... the following message; >(un)subscribe xml-dev >To subscribe to the digests, mailto:majordomo@i... the following message; >subscribe xml-dev-digest >List coordinator, Henry Rzepa (mailto:rzepa@i...) > > xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|