antlets/pmd/src/resources/stylesheets pmd2docbook.xsl,NONE,1.1

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/antlets/pmd/src/resources/stylesheets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2172/pmd/src/resources/stylesheets

Added Files:
	pmd2docbook.xsl 
Log Message:
first try to integrate output from report generating antlets with forrest

--- NEW FILE: pmd2docbook.xsl ---
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method = "xml" doctype-public="-//APACHE//DTD Documentation V1.1//EN" doctype-system="./dtd/document-v11.dtd"/>
	
	<xsl:template match="/">	
		<document>
		  <header>
		    <title>PMD Report</title>
		    <authors>
		      <person id="PMD" name="PMD Antlet" email=""/>      
		    </authors>
		  </header>

		  <body>
		     <xsl:apply-templates/>
		  </body>
	  	</document>
	</xsl:template>
	
	<xsl:template match="file">	
    <section>
    	<title><xsl:value-of select="@name" /></title>
		<table>
	    <tr>
	      <th>line</th>
	  	  <th>rule</th>
		  <th>suggestion</th>
	    </tr>
		     <xsl:apply-templates/>
	    <tr><th colspan="3"></th></tr>
	    </table>
    </section>
	</xsl:template>
	
	<xsl:template match="violation">	
		<tr>
		<td><xsl:value-of select="@line" /></td>
		<td><xsl:value-of select="@rule" /></td>
		<td><xsl:value-of select="." /></td>
		</tr>
	</xsl:template>
	
	
</xsl:stylesheet>


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.