Nmap Development mailing list archives

Re: Feedback requested - XML XSL transform changes


From: David Fifield <david () bamsoftware com>
Date: Sun, 14 Nov 2010 07:38:50 -0800

On Sun, Nov 14, 2010 at 09:18:18AM -0600, Tom Sellers wrote:
On 11/11/2010 5:01 PM, Tom Sellers wrote:
   I have attached an updated version of the nmap XML XSL
transform document, nmap.xsl.
I have also attached a sample scan XML file, test2.xml.  Just save
both in a directory
and open test2.xml in a browser or use a command line utility to
convert to HTML.

Changes:

Added support for the pre-scan script data.  The output is
formatted using HTML 'pre' tags.
   The text format does not match the other tables but but seemed
to be the only way to
   format the data into some semblance of readability.  I tried
replacing the XML encoded
   line feeds and carriage returns with break tags "<br />" but
that was not reliable
   and the encoded \r and \n were not always where they needed to
be to look correct.

I have just committed the updated version of nmap.xsl.  In addition
to the changes above, the following
additional updates have been made:

Whie you're at it, please add a section for postrule script output as
well. I don't think we have any scripts that have that kind of output
yet. nmap.dtd shows where it appears.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: