It looks like the stylesheet isn't correct, or i'm misreading something. (I
don't use it).
Change this:
<xsl:template match="data">
<tr>
<td valign="top" class="default" width="100%">
<xsl:apply-templates select="p"/>
</td>
</tr>
</xsl:template>
To this:
<xsl:template match="data">
<tr>
<td valign="top" class="default" width="100%">
<xsl:value-of select="."/>
</td>
</tr>
</xsl:template>
Or this: (added some more info so you could see how to get at it)
<xsl:template match="data">
<tr>
<!-- gets the plugin id relative to this data element -->
<xsl:variable name="pluginid">
<xsl:value-of select="../id"/>
</xsl:variable>
<td>
<!-- gets information from the plugin definition up top for this id -->
<xsl:value-of select="/report/plugins/[EMAIL PROTECTED]/name"/>
</td>
</tr>
<tr>
<td valign="top" class="default" width="100%">
<!-- you can wrap this with <pre></pre> to retain the original
formatting, but its ugly -->
<xsl:value-of select="."/>
</td>
</tr>
</xsl:template>
Quoting Daren Kinser <[EMAIL PROTECTED]>:
> Thanks for the response. It did have an absolute path. I changed it
> back and it is partially working now. The report has no "Issue and Fix"
> information. It also is lacking much of the information that is is the
> raw xml file. Any ideas? Thanks again for the quick response.
>
> Daren
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 16, 2005 9:15 AM
> To: Daren Kinser
> Cc: [email protected]
> Subject: Re: xml and xsl
>
> Daren,
>
> Did you happen to open the XML file into XML Spy or some other editor?
> It looks like something has updated the stylesheet reference to an
> absolute path.
>
> The top of the XML file should look something like this:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!-- nessus.xsl can be found in the nessus-tools directory -->
> <?xml-stylesheet type="text/xsl" href="nessus.xsl"?>
>
> It's also possible that the XSL you're using has external references
> that are not being fulfilled. What does the '<truncated path>' point
> to?
>
> Thanks
>
>
> Quoting Daren Kinser <[EMAIL PROTECTED]>:
>
> > I am having trouble getting the nessus .xml report to work. I have
> > run an xml report. I transferred the report to a windows system and
> > placed the .xsl document in that same directory. I cannot get the
> > .xml to display. I receive the following error with IE6:
> >
> > **********
> > The XML page cannot be displayed
> >
> > Cannot view XML input using XSL style sheet. Please correct the error
> > and then click the Refresh button, or try again later.
> >
> > The system cannot locate the resource specified. Error processing
> > resource 'file:///F:/<truncatedpath>...
> > **********
> >
> > With FireFox, It gives me all the text with no formatting.
> >
> > Has anyone had success with the .xml report and if so do you have any
> > recommendations. Thanks in advance for any help provided.
> >
> > Daren
> > _______________________________________________
> > Nessus mailing list
> > [email protected]
> > http://mail.nessus.org/mailman/listinfo/nessus
> >
>
>
> --
> Robert Rich
> Global Security Technologies, Inc.
> Mobile: 614.975.7549
> Office: 614.890.6400 x7015
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
--
Robert Rich
Global Security Technologies, Inc.
Mobile: 614.975.7549
Office: 614.890.6400 x7015
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus