home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2002 April / Gamestar_39_2002-04_cd1.bin / Tiscali / IEMIL_3.CAB / MSXML3.DLL / HTML / DEFAULTSS.XSL
Extensible Markup Language  |  2001-10-22  |  7KB  |  146 lines

  1. <?xml version="1.0"?>
  2. <x:stylesheet xmlns:x="http://www.w3.org/TR/WD-xsl" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:d2="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
  3. <x:template match="/">
  4. <HTML><HEAD>
  5. <STYLE>BODY{font:x-small 'Verdana';margin-right:1.5em}
  6. .c{cursor:hand}
  7. .b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none}
  8. .e{margin-left:1em;text-indent:-1em;margin-right:1em}
  9. .k{margin-left:1em;text-indent:-1em;margin-right:1em}
  10. .t{color:#990000}
  11. .xt{color:#990099}
  12. .ns{color:red}
  13. .dt{color:green}
  14. .m{color:blue}
  15. .tx{font-weight:bold}
  16. .db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier}
  17. .di{font:small Courier}
  18. .d{color:blue}
  19. .pi{color:blue}
  20. .cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888}
  21. .ci{font:small Courier;color:#888888}
  22. PRE{margin:0px;display:inline}</STYLE>
  23. <SCRIPT><x:comment>
  24. function f(e){
  25. if (e.className=="ci"){if (e.children(0).innerText.indexOf("\n")>0) fix(e,"cb");}
  26. if (e.className=="di"){if (e.children(0).innerText.indexOf("\n")>0) fix(e,"db");}
  27. e.id="";
  28. }
  29. function fix(e,cl){
  30. e.className=cl;
  31. e.style.display="block";
  32. j=e.parentElement.children(0);
  33. j.className="c";
  34. k=j.children(0);
  35. k.style.visibility="visible";
  36. k.href="#";
  37. }
  38. function ch(e){
  39. mark=e.children(0).children(0);
  40. if (mark.innerText=="+"){
  41. mark.innerText="-";
  42. for (var i=1;i<e.children.length;i++)
  43. e.children(i).style.display="block";
  44. }
  45. else if (mark.innerText=="-"){
  46. mark.innerText="+";
  47. for (var i=1;i<e.children.length;i++)
  48. e.children(i).style.display="none";
  49. }}
  50. function ch2(e){
  51. mark=e.children(0).children(0);
  52. contents=e.children(1);
  53. if (mark.innerText=="+"){
  54. mark.innerText="-";
  55. if (contents.className=="db"||contents.className=="cb")
  56. contents.style.display="block";
  57. else contents.style.display="inline";
  58. }
  59. else if (mark.innerText=="-"){
  60. mark.innerText="+";
  61. contents.style.display="none";
  62. }}
  63. function cl(){
  64. e=window.event.srcElement;
  65. if (e.className!="c"){e=e.parentElement;if (e.className!="c"){return;}}
  66. e=e.parentElement;
  67. if (e.className=="e") ch(e);
  68. if (e.className=="k") ch2(e);
  69. }
  70. function ex(){}
  71. function h(){window.status=" ";}
  72. document.onclick=cl;
  73. </x:comment></SCRIPT>
  74. </HEAD>
  75. <BODY class="st"><x:apply-templates/></BODY>
  76. </HTML>
  77. </x:template>
  78. <x:template match="node()[nodeType()=10]">
  79. <DIV class="e"><SPAN>
  80. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN>
  81. <SPAN class="d"><!DOCTYPE <x:node-name/><I> (View Source for full doctype...)</I>></SPAN>
  82. </SPAN></DIV>
  83. </x:template>
  84. <x:template match="pi()">
  85. <DIV class="e">
  86. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN>
  87. <SPAN class="m"><?</SPAN><SPAN class="pi"><x:node-name/> <x:value-of/></SPAN><SPAN class="m">?></SPAN>
  88. </DIV>
  89. </x:template>
  90. <x:template match="pi('xml')">
  91. <DIV class="e">
  92. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN>
  93. <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>
  94. </DIV>
  95. </x:template>
  96. <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>
  97. <x:template match="@xmlns:*|@xmlns|@xml:*"><SPAN class="ns"> <x:node-name/></SPAN><SPAN class="m">="</SPAN><B class="ns"><x:value-of/></B><SPAN class="m">"</SPAN></x:template>
  98. <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>
  99. <x:template match="textnode()">
  100. <DIV class="e">
  101. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN>
  102. <SPAN class="tx"><x:value-of/></SPAN>
  103. </DIV>
  104. </x:template>
  105. <x:template match="comment()">
  106. <DIV class="k">
  107. <SPAN><A class="b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">-</A> <SPAN class="m"><!--</SPAN></SPAN>
  108. <SPAN id="clean" class="ci"><PRE><x:value-of/></PRE></SPAN>
  109. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN> <SPAN class="m">--></SPAN>
  110. <SCRIPT>f(clean);</SCRIPT></DIV>
  111. </x:template>
  112. <x:template match="cdata()">
  113. <DIV class="k">
  114. <SPAN><A class="b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">-</A> <SPAN class="m"><![CDATA[</SPAN></SPAN>
  115. <SPAN id="clean" class="di"><PRE><x:value-of/></PRE></SPAN>
  116. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN> <SPAN class="m">]]></SPAN>
  117. <SCRIPT>f(clean);</SCRIPT></DIV>
  118. </x:template>
  119. <x:template match="*">
  120. <DIV class="e"><DIV STYLE="margin-left:1em;text-indent:-2em">
  121. <SPAN class="b"><x:entity-ref name="nbsp"/></SPAN>
  122. <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>
  123. </DIV></DIV>
  124. </x:template>
  125. <x:template match="*[node()]">
  126. <DIV class="e">
  127. <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>
  128. <DIV><x:apply-templates/>
  129. <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>
  130. </DIV></DIV>
  131. </x:template>
  132. <x:template match="*[textnode()$and$$not$(comment()$or$pi()$or$cdata())]">
  133. <DIV class="e"><DIV STYLE="margin-left:1em;text-indent:-2em">
  134. <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="@*"/>
  135. <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>
  136. </DIV></DIV>
  137. </x:template>
  138. <x:template match="*[*]">
  139. <DIV class="e">
  140. <DIV class="c" STYLE="margin-left:1em;text-indent:-2em"><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>
  141. <DIV><x:apply-templates/>
  142. <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>
  143. </DIV></DIV>
  144. </x:template>
  145. </x:stylesheet>
  146.