Also, you might be able to modify my "pretty printing" XSLT for this purpose:
http://dev.rdcpro.com/Memb
Regards,
Mike Sharp
Main Topics
Browse All Topicsxml file:
<el1
attrib1="val1"
attrib2="val2">
</el1>
when displaying this file in microsoft ie, all the attributes are put on one line, as in:
<el1 attrib1="val1" attrib2="val2" />
I want (for debugging purposes) to be able to see each attribute on its own line. is there some attribute of the xml file that could be specified (or some other way in which) to enable this?
(there is related xslt question I hope to post as well).
abie
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also, you might be able to modify my "pretty printing" XSLT for this purpose:
http://dev.rdcpro.com/Memb
Regards,
Mike Sharp
I had tried inserting this uri into the address bar and clicking go (in ie6), and I just get a 'the page cannot be displayed' error. (when I have tried this technique on other occassions, a dialogue box appeared in which I could click save). in netscape I tried the equivalent operation and the alert message appeared saying that "res" is not a registered protocol.
In IE6, placing this:
res://msxml3/defaultss.xsl
in the address bar, and hitting enter, should make the XSL appear. If it doesn't, you've got a problem with MSXML 3. Download and install the parser again, and it should then work. Note, don't preface this with http:// or anything. Just cut and paste that line. Unfortunately, I'm not sure you're going to be able to do the "save as". I just tried it myself, and it doesn't seem to save it...You'll have to cut and paste it from the screen, editing it to remove the "+" and "-"
Regards,
Mike Sharp
Here's the stylesheet:
<?xml version="1.0" ?>
- <x:stylesheet xmlns:x="http://www.w3.org
- <x:template match="/">
- <HTML>
- <HEAD>
<STYLE>BODY{font:x-small 'Verdana';margin-right:1.5
- <SCRIPT>
<x:comment>function f(e){ if (e.className=="ci"){if (e.children(0).innerText.i
</SCRIPT>
</HEAD>
- <BODY class="st">
<x:apply-templates />
</BODY>
</HTML>
</x:template>
- <x:template match="node()[nodeType()=1
- <DIV class="e">
- <SPAN>
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
- <SPAN class="d">
<!DOCTYPE
<x:node-name />
<I>(View Source for full doctype...)</I>
>
</SPAN>
</SPAN>
</DIV>
</x:template>
- <x:template match="pi()">
- <DIV class="e">
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"><?</SPAN>
- <SPAN class="pi">
<x:node-name />
<x:value-of />
</SPAN>
<SPAN class="m">?></SPAN>
</DIV>
</x:template>
- <x:template match="pi('xml')">
- <DIV class="e">
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"><?</SPAN>
- <SPAN class="pi">
xml
- <x:for-each select="@*">
<x:node-name />
="
<x:value-of />
"
</x:for-each>
</SPAN>
<SPAN class="m">?></SPAN>
</DIV>
</x:template>
- <x:template match="@*" xml:space="preserve">
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*/@*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<SPAN class="m">="</SPAN>
- <B>
<x:value-of />
</B>
<SPAN class="m">"</SPAN>
</x:template>
- <x:template match="@xmlns:*|@xmlns|@xm
- <SPAN class="ns">
<x:node-name />
</SPAN>
<SPAN class="m">="</SPAN>
- <B class="ns">
<x:value-of />
</B>
<SPAN class="m">"</SPAN>
</x:template>
- <x:template match="@dt:*|@d2:*">
- <SPAN class="dt">
<x:node-name />
</SPAN>
<SPAN class="m">="</SPAN>
- <B class="dt">
<x:value-of />
</B>
<SPAN class="m">"</SPAN>
</x:template>
- <x:template match="textnode()">
- <DIV class="e">
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
- <SPAN class="tx">
<x:value-of />
</SPAN>
</DIV>
</x:template>
- <x:template match="comment()">
- <DIV class="k">
- <SPAN>
<A class="b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">
<SPAN class="m"><!--</SPAN>
</SPAN>
- <SPAN id="clean" class="ci">
- <PRE>
<x:value-of />
</PRE>
</SPAN>
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m">--></SPAN>
<SCRIPT>f(clean);</SCRIPT>
</DIV>
</x:template>
- <x:template match="cdata()">
- <DIV class="k">
- <SPAN>
<A class="b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">
<SPAN class="m"><![CDATA[</SPAN>
</SPAN>
- <SPAN id="clean" class="di">
- <PRE>
<x:value-of />
</PRE>
</SPAN>
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m">]]></SPAN>
<SCRIPT>f(clean);</SCRIPT>
</DIV>
</x:template>
- <x:template match="*">
- <DIV class="e">
- <DIV STYLE="margin-left:1em;tex
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"><</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<x:apply-templates select="@*" />
<SPAN class="m">/></SPAN>
</DIV>
</DIV>
</x:template>
- <x:template match="*[node()]">
- <DIV class="e">
- <DIV class="c">
<A href="#" onclick="return false" onfocus="h()" class="b">-</A>
<SPAN class="m"><</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<x:apply-templates select="@*" />
<SPAN class="m">></SPAN>
</DIV>
- <DIV>
<x:apply-templates />
- <DIV>
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"></</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<SPAN class="m">></SPAN>
</DIV>
</DIV>
</DIV>
</x:template>
- <x:template match="*[textnode()$and$$n
- <DIV class="e">
- <DIV STYLE="margin-left:1em;tex
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"><</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<x:apply-templates select="@*" />
<SPAN class="m">></SPAN>
- <SPAN class="tx">
<x:value-of />
</SPAN>
<SPAN class="m"></</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<SPAN class="m">></SPAN>
</DIV>
</DIV>
</x:template>
- <x:template match="*[*]">
- <DIV class="e">
- <DIV class="c" STYLE="margin-left:1em;tex
<A href="#" onclick="return false" onfocus="h()" class="b">-</A>
<SPAN class="m"><</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<x:apply-templates select="@*" />
<SPAN class="m">></SPAN>
</DIV>
- <DIV>
<x:apply-templates />
- <DIV>
- <SPAN class="b">
<x:entity-ref name="nbsp" />
</SPAN>
<SPAN class="m"></</SPAN>
- <SPAN>
- <x:attribute name="class">
<x:if match="x:*">x</x:if>
t
</x:attribute>
<x:node-name />
</SPAN>
<SPAN class="m">></SPAN>
</DIV>
</DIV>
</DIV>
</x:template>
</x:stylesheet>
my goof.
I did not notice that the link you originally gave was 2 separate links. I copied and pasted everything you had in the parens:
res://msxml/defaultss.xsl or res://msxml3/defaultss.xsl
when I use just one of them, it works fine.
looks like I've been dealing w/ compilers for way too long by now
abie.
Business Accounts
Answer for Membership
by: rdcproPosted on 2003-09-07 at 12:37:03ID: 9305778
You'll have to replace the default stylesheet (res://msxml/defaultss.xsl or res://msxml3/defaultss.xsl ) with one of your own, using a processing instruction to load the alternative. You can start with the default version, and modify it if you want. Seems like a lot of work, though, for a debugging tool. If you just need to display it (without the expanding/collapsing code), I'd just write a simple stylesheet that mixed the spans and divs the way you want it. That is, attributes are in a DIV rather than a SPAN, so that they appear on their own line.
Regards,
Mike Sharp