mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-14 04:37:16 +01:00
Adding the XSLT file for XML->XHTML conv.
This commit is contained in:
parent
4962097aa9
commit
7f86ced52b
1 changed files with 47 additions and 0 deletions
47
htdocs/default.xsl
Normal file
47
htdocs/default.xsl
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template match="/clusters">
|
||||
<html>
|
||||
<head><title>Groups of potentially correlated alerts</title></head>
|
||||
<body>
|
||||
<h1>Alert clusters from the <i>SOM</i> neural network</h1>
|
||||
<ul>
|
||||
<xsl:apply-templates select="cluster">
|
||||
<xsl:sort select="id"/>
|
||||
</xsl:apply-templates>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cluster">
|
||||
<li>
|
||||
<i><xsl:text>Alert cluster </xsl:text>
|
||||
<xsl:value-of select="@id"/></i>
|
||||
</li>
|
||||
|
||||
<ul>
|
||||
<xsl:apply-templates select="alert">
|
||||
<xsl:sort select="gid"/>
|
||||
</xsl:apply-templates>
|
||||
</ul><br/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="alert">
|
||||
<li>
|
||||
<b><xsl:value-of select="@desc"/></b>
|
||||
<xsl:text>received at </xsl:text>
|
||||
<u><xsl:value-of select="@timestamp"/></u>
|
||||
<xsl:text>, </xsl:text>
|
||||
<i><xsl:value-of select="@src_ip"/>
|
||||
<xsl:text>:</xsl:text>
|
||||
<xsl:value-of select="@src_port"/>
|
||||
<xsl:text> -> </xsl:text>
|
||||
<xsl:value-of select="@dst_ip"/>
|
||||
<xsl:text>:</xsl:text>
|
||||
<xsl:value-of select="@dst_port"/></i>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
Loading…
Reference in a new issue