Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

  1. <?xml version="1.0"?>
  2. <!-- Generic stylesheet for viewing XML -->
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  4. <!-- This template will always be executed, even if this stylesheet is not run on the document root -->
  5. <xsl:template>
  6. <DIV STYLE="font-family:Courier; font-size:10pt; margin-bottom:2em">
  7. <!-- Scoped templates are used so they don't interfere with the "kick-off" template. -->
  8. <xsl:apply-templates select=".">
  9. <xsl:template><xsl:apply-templates/></xsl:template>
  10. <xsl:template match="*">
  11. <DIV STYLE="margin-left:1em; color:gray">
  12. &lt;<xsl:node-name/><xsl:apply-templates select="@*"/>/&gt;
  13. </DIV>
  14. </xsl:template>
  15. <xsl:template match="*[node()]">
  16. <DIV STYLE="margin-left:1em">
  17. <SPAN STYLE="color:gray">&lt;<xsl:node-name/><xsl:apply-templates select="@*"/>&gt;</SPAN><xsl:apply-templates select="node()"/><SPAN STYLE="color:gray">&lt;/<xsl:node-name/>&gt;</SPAN>
  18. </DIV>
  19. </xsl:template>
  20. <xsl:template match="@*">
  21. <SPAN STYLE="color:navy"> <xsl:node-name/>="<SPAN STYLE="color:black"><xsl:value-of /></SPAN>"</SPAN>
  22. </xsl:template>
  23. <xsl:template match="pi()">
  24. <DIV STYLE="margin-left:1em; color:maroon">&lt;?<xsl:node-name/><xsl:apply-templates select="@*"/>?&gt;</DIV>
  25. </xsl:template>
  26. <xsl:template match="cdata()"><pre>&lt;![CDATA[<xsl:value-of />]]&gt;</pre></xsl:template>
  27. <xsl:template match="textNode()"><xsl:value-of /></xsl:template>
  28. </xsl:apply-templates>
  29. </DIV>
  30. </xsl:template>
  31. </xsl:stylesheet>