svn rev #22103: tools/gssmonger/trunk/ gssmaster/

raeburn@MIT.EDU raeburn at MIT.EDU
Mon Mar 16 18:42:02 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22103
Commit By: raeburn
Log Message:
MS docs and XSLT file


Changed Files:
A   tools/gssmonger/trunk/gssMonger.doc
A   tools/gssmonger/trunk/gssmaster/ezlog.xslt
Added: tools/gssmonger/trunk/gssMonger.doc
===================================================================
(Binary files differ)


Added: tools/gssmonger/trunk/gssmaster/ezlog.xslt
===================================================================
--- tools/gssmonger/trunk/gssmaster/ezlog.xslt	2009-03-16 19:47:27 UTC (rev 22102)
+++ tools/gssmonger/trunk/gssmaster/ezlog.xslt	2009-03-16 22:42:01 UTC (rev 22103)
@@ -0,0 +1,212 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
+<xsl:output method="html" encoding="iso-8859-1" />
+
+<!-- Authored by Vitali Prokopenko -->
+
+<xsl:template match="/ezLog">
+  <HTML>
+    <HEAD>
+      <TITLE>
+        <xsl:value-of select="/ezLog/ezHeader/fileName"/> - 
+        ezLog v<xsl:value-of select="/ezLog/@FileFmt"/>
+      </TITLE>
+      <STYLE type="text/css">
+        <xsl:apply-templates select="/ezLog/ezHeader/Levels/Level"/>
+      </STYLE>
+    </HEAD>
+    <BODY leftmargin="0" topmargin="5">
+      <SCRIPT language="JavaScript">
+        var HighlightFollowsMouse = true;
+        var HighlightedElement = null;
+        function Leave ( element )
+        {
+          if ( HighlightFollowsMouse )
+            with ( element.style )
+              borderTopColor = borderBottomColor = backgroundColor;
+        }
+        function Enter ( element )
+        {
+          if ( HighlightFollowsMouse )
+            with ( element.style )
+              borderTopColor = borderBottomColor = 'black';
+        }
+        function Click ( element )
+        {
+          if ( !HighlightFollowsMouse )
+            with ( HighlightedElement.style )
+              borderTopColor = borderBottomColor = backgroundColor;
+          if ( HighlightFollowsMouse || element == HighlightedElement )
+            HighlightFollowsMouse = !HighlightFollowsMouse;
+          if ( !HighlightFollowsMouse )
+          {
+            HighlightedElement = element;
+            with ( element.style )
+              borderTopColor = borderBottomColor = 'black';
+          }
+          else
+          {
+            with ( HighlightedElement.style )
+              borderTopColor = borderBottomColor = backgroundColor;
+            with ( element.style )
+              borderTopColor = borderBottomColor = 'black';
+          }
+        }
+      </SCRIPT>
+      <!--  by popular request, move the results table to the top.  -->
+      <PRE style="padding-left:10; margin-bottom:0;">
+        <xsl:value-of select="/ezLog/REPORT/ezHumanReadableReport"/>
+      </PRE>
+      <TABLE border="0" cellpadding="0" cellspacing="0">
+        <TR><TD colspan="3" style="font-family:Verdana;font-size:12;border-bottom: 1 solid #000000;padding-left:4;">
+          Click mouse to stick ruler to one line.<BR/>Click the same line again to unstick ruler.
+        </TD></TR>
+	<TR border="1">
+         <TD style="border: 1 solid #000000;" align="center">Location</TD>
+         <TD style="border: 1 solid #000000;" align="center">Level</TD>
+         <TD style="border: 1 solid #000000;" align="center">Message</TD>
+	</TR>
+        <xsl:apply-templates select="/ezLog/RUN">
+	 <xsl:with-param name="ezlog_ignore">
+	 <!--
+
+	 	If you want to turn off one or more of the levels, 
+		add them after the '>', comma-separated.
+
+	 -->
+	 </xsl:with-param>
+        </xsl:apply-templates>
+      </TABLE>
+    </BODY>
+  </HTML>
+</xsl:template>
+
+<xsl:template match="/ezLog/ezHeader/Levels/Level">
+  .Lev<xsl:value-of select="@id"/> {
+    padding-left:5;
+    cursor: default;
+    <xsl:if test="contains(@flags,'RED')">
+      <xsl:if test="contains(@flags,'GREEN')">
+        <xsl:if test="contains(@flags,'BLUE')">
+          border-top: 1 solid #FFFFFF;
+          border-bottom: 1 solid #FFFFFF;
+          background-color: #FFFFFF;
+        </xsl:if>
+        <xsl:if test="not(contains(@flags,'BLUE'))">
+          border-top: 1 solid #FFFFD0;
+          border-bottom: 1 solid #FFFFD0;
+          background-color: #FFFFD0;
+        </xsl:if>
+      </xsl:if>
+      <xsl:if test="not(contains(@flags,'GREEN'))">
+        <xsl:if test="contains(@flags,'BLUE')">
+          border-top: 1 solid #FFD0FF;
+          border-bottom: 1 solid #FFD0FF;
+          background-color: #FFD0FF;
+        </xsl:if>
+        <xsl:if test="not(contains(@flags,'BLUE'))">
+          border-top: 1 solid #FFC0C8;
+          border-bottom: 1 solid #FFC0C8;
+          background-color: #FFC0C8;
+        </xsl:if>
+      </xsl:if>
+    </xsl:if>
+    <xsl:if test="not(contains(@flags,'RED'))">
+      <xsl:if test="contains(@flags,'GREEN')">
+        <xsl:if test="contains(@flags,'BLUE')">
+          border-top: 1 solid #DAFFFF;
+          border-bottom: 1 solid #DAFFFF;
+          background-color: #DAFFFF;
+        </xsl:if>
+        <xsl:if test="not(contains(@flags,'BLUE'))">
+          border-top: 1 solid #C0FFD8;
+          border-bottom: 1 solid #C0FFD8;
+          background-color: #C0FFD8;
+        </xsl:if>
+      </xsl:if>
+      <xsl:if test="not(contains(@flags,'GREEN'))">
+        <xsl:if test="contains(@flags,'BLUE')">
+          border-top: 1 solid #C0D8FF;
+          border-bottom: 1 solid #C0D8FF;
+          background-color: #C0D8FF;
+        </xsl:if>
+        <xsl:if test="not(contains(@flags,'BLUE'))">
+          border-top: 1 solid #F5F5F5;
+          border-bottom: 1 solid #F5F5F5;
+          background-color: #F5F5F5;
+        </xsl:if>
+      </xsl:if>
+    </xsl:if>
+  }
+</xsl:template>
+
+<xsl:template match="/ezLog/RUN/BUG">
+ <TR>
+  <TD align="left" bgcolor="#E8E8E8" style="padding-left:4;padding-right:4;">
+    <i>Bug</i></TD>
+  <TD align="center" style="font-size: 9pt">
+    <xsl:value-of select="@id"/></TD>
+  <TD>
+    <a><xsl:attribute name="href"><xsl:value-of select="@fmt"/></xsl:attribute>
+      <xsl:value-of select="@fmt"/>
+    </a>
+  </TD>
+ </TR>
+</xsl:template>
+
+<xsl:template match="/ezLog/RUN/MSG">
+ <xsl:param name="ezlog_ignore"/>
+ <xsl:if test="not(contains($ezlog_ignore, at LevelName))">
+  <TR>
+    <!-- either the location (true MSG) or the type (open or close) -->
+    <TD align="left" bgcolor="#E8E8E8" style="padding-left:4;padding-right:4;">
+      <TT><xsl:value-of select="@Location"/></TT>
+      <SPAN style="font-family: Verdana, Arial, sans-serif;font-size: 9pt;">
+        <B><xsl:value-of select="@Type"/></B>
+      </SPAN>
+    </TD>
+    <!-- Next is the level.  We *ALWAYS* print the level. -->
+    <TD align="center" style="font-size: 9pt">
+     <xsl:if test="@Type='START'">
+      <i><xsl:value-of select="@LevelName"/></i>
+     </xsl:if>
+     <xsl:if test="@Type='FINISH'">
+      <B><xsl:value-of select="@LevelName"/></B>
+     </xsl:if>
+     <xsl:if test="string-length(@Type) = 0">
+       <xsl:value-of select="@LevelName"/>
+     </xsl:if>
+    </TD>
+    <!-- 
+      If the opener requested BLOCKNAME_IN_MSGS, then we print the blockname
+      (if available) for each message as the next field.
+
+      If the blockname is unavailable, for whatever reason, then this
+      field will be left blank.
+    -->
+    <xsl:if test="contains(/ezLog/ezHeader/textOpenFlags,'BLOCKNAME_IN_MSGS')">
+      <TD>
+        <xsl:attribute name="class">Lev<xsl:value-of select="@LevelId"/></xsl:attribute>
+        <xsl:apply-templates select="@CurrentBlockName"/>
+      </TD>
+    </xsl:if>
+
+    <!-- 
+      the last value is the message itself UNLESS messagetype=BUG
+
+      For some reason, whenever we PRE this message field, we end 
+      up with additional spacing.  To fix this, we set the bottom
+      margin to 0 (see http://www.w3.org/MarkUp/Guide/Style).
+    -->
+
+    <TD valign="TOP">
+      <xsl:attribute name="onmouseenter">JavaScript:Enter(this);</xsl:attribute>
+      <xsl:attribute name="onmouseleave">JavaScript:Leave(this);</xsl:attribute>
+      <xsl:attribute name="class">Lev<xsl:value-of select="@LevelId"/></xsl:attribute>
+      <xsl:attribute name="onclick">JavaScript:Click(this);</xsl:attribute>
+      <PRE style="margin-bottom: 0;"><xsl:apply-templates/></PRE>
+    </TD>
+  </TR>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file


Property changes on: tools/gssmonger/trunk/gssMonger.doc
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Property changes on: tools/gssmonger/trunk/gssmaster/ezlog.xslt
___________________________________________________________________
Name: svn:eol-style
   + native




More information about the cvs-krb5 mailing list