|
| 1 | +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| 2 | + <xsl:include href="includes/page.xsl"/> |
| 3 | + <xsl:include href="includes/authlist.xsl"/> |
| 4 | + <xsl:variable name="title">Listen Sockets</xsl:variable> |
| 5 | + |
| 6 | + <xsl:template name="content"> |
| 7 | + <h2><xsl:value-of select="$title" /></h2> |
| 8 | + <xsl:for-each select="/report/incident"> |
| 9 | + <section class="box"> |
| 10 | + <h3 class="box_title">Listen Socket <code><xsl:value-of select="resource/value[@member='id']/@value" /></code></h3> |
| 11 | + <h4>Overview</h4> |
| 12 | + <table class="table-block"> |
| 13 | + <thead> |
| 14 | + <tr> |
| 15 | + <th>Key</th> |
| 16 | + <th>Value</th> |
| 17 | + </tr> |
| 18 | + </thead> |
| 19 | + <tbody> |
| 20 | + <xsl:if test="resource/value[@member='id']/@state = 'set'"> |
| 21 | + <tr> |
| 22 | + <td>ID</td> |
| 23 | + <td><xsl:value-of select="resource/value[@member='id']/@value" /></td> |
| 24 | + </tr> |
| 25 | + </xsl:if> |
| 26 | + <xsl:if test="resource/value[@member='on_behalf_of']/@state = 'set'"> |
| 27 | + <tr> |
| 28 | + <td>On behalf of</td> |
| 29 | + <td><xsl:value-of select="resource/value[@member='on_behalf_of']/@value" /></td> |
| 30 | + </tr> |
| 31 | + </xsl:if> |
| 32 | + <tr> |
| 33 | + <td>Type</td> |
| 34 | + <td><xsl:value-of select="resource/value[@member='type']/@value" /></td> |
| 35 | + </tr> |
| 36 | + <tr> |
| 37 | + <td>Family</td> |
| 38 | + <td><xsl:value-of select="resource/value[@member='family']/@value" /></td> |
| 39 | + </tr> |
| 40 | + </tbody> |
| 41 | + </table> |
| 42 | + |
| 43 | + <h4>Config</h4> |
| 44 | + <table class="table-block"> |
| 45 | + <thead> |
| 46 | + <tr> |
| 47 | + <th>Key</th> |
| 48 | + <th>Value</th> |
| 49 | + </tr> |
| 50 | + </thead> |
| 51 | + <tbody> |
| 52 | + <xsl:for-each select="resource/value[@member='config']/value"> |
| 53 | + <xsl:if test="@state != 'unset'"> |
| 54 | + <tr> |
| 55 | + <td><xsl:value-of select="@member" /></td> |
| 56 | + <td><xsl:value-of select="@value" /></td> |
| 57 | + </tr> |
| 58 | + </xsl:if> |
| 59 | + </xsl:for-each> |
| 60 | + </tbody> |
| 61 | + </table> |
| 62 | + |
| 63 | + <xsl:if test="resource/value[@member='headers']/value"> |
| 64 | + <h4>Header</h4> |
| 65 | + <table class="table-block"> |
| 66 | + <thead> |
| 67 | + <tr> |
| 68 | + <th>Type</th> |
| 69 | + <th>Name</th> |
| 70 | + <th>Value</th> |
| 71 | + <th>Status</th> |
| 72 | + </tr> |
| 73 | + </thead> |
| 74 | + <tbody> |
| 75 | + <xsl:for-each select="resource/value[@member='headers']/value"> |
| 76 | + <tr> |
| 77 | + <td><xsl:value-of select="value[@member='type']/@value" /></td> |
| 78 | + <td><xsl:value-of select="value[@member='name']/@value" /></td> |
| 79 | + <td><xsl:value-of select="value[@member='value']/@value" /></td> |
| 80 | + <td><xsl:value-of select="value[@member='status']/@value" /></td> |
| 81 | + </tr> |
| 82 | + </xsl:for-each> |
| 83 | + </tbody> |
| 84 | + </table> |
| 85 | + </xsl:if> |
| 86 | + |
| 87 | + <xsl:for-each select="resource/extension/icestats"> |
| 88 | + <h4>Authentication</h4> |
| 89 | + <xsl:call-template name="authlist" /> |
| 90 | + </xsl:for-each> |
| 91 | + </section> |
| 92 | + </xsl:for-each> |
| 93 | + </xsl:template> |
| 94 | +</xsl:stylesheet> |
0 commit comments