1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 05:39:01 +00:00

merge soc07 r4957 - Put <extrareasons> inside <extraports> as this should really simplify XML parsers' jobs because they won't have to keep track of what states and reasons go together

This commit is contained in:
fyodor
2007-08-11 04:29:50 +00:00
parent 8a3b378695
commit 2af8e785f8
6 changed files with 22 additions and 20 deletions

View File

@@ -161,9 +161,9 @@
<!-- these elements are written by output.c:printportoutput() -->
<!ELEMENT ports (extraports* , extrareasons*, port*) >
<!ELEMENT ports (extraports* , port*) >
<!ELEMENT extraports EMPTY >
<!ELEMENT extraports (extrareasons)* >
<!ATTLIST extraports
state %port_states; #REQUIRED
count %attr_numeric; #REQUIRED

View File

@@ -505,15 +505,15 @@
<xsl:if test="@count > 0">
<p>The <xsl:value-of select="@count" /> ports scanned but not shown below are in state: <b><xsl:value-of select="@state" /></b></p>
</xsl:if>
</xsl:for-each>
<ul>
<xsl:for-each select="extrareasons">
<xsl:if test="@count > 0">
<li><p><xsl:value-of select="@count" /> ports replied with: <b><xsl:value-of select="@reason" /></b></p></li>
</xsl:if>
<ul>
<xsl:for-each select="extrareasons">
<xsl:if test="@count > 0">
<li><p><xsl:value-of select="@count" /> ports replied with: <b><xsl:value-of select="@reason" /></b></p></li>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:for-each>
</ul>
<xsl:if test="count(port) > 0">
<table cellspacing="1">