forked from phoedos/pmd
Added some new priority filtering XSLT from David Corley. This should at the very least be handy as example code, and maybe folks will find this directly useful.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4398 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
15
pmd/etc/xslt/pmd-xmlfilter-prio1.xsl
Normal file
15
pmd/etc/xslt/pmd-xmlfilter-prio1.xsl
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='2']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='3']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
15
pmd/etc/xslt/pmd-xmlfilter-prio2.xsl
Normal file
15
pmd/etc/xslt/pmd-xmlfilter-prio2.xsl
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='1']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='3']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
15
pmd/etc/xslt/pmd-xmlfilter-prio3.xsl
Normal file
15
pmd/etc/xslt/pmd-xmlfilter-prio3.xsl
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='1']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='2']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
15
pmd/etc/xslt/pmd-xmlfilter-prio4.xsl
Normal file
15
pmd/etc/xslt/pmd-xmlfilter-prio4.xsl
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='1']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='2']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='3']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
15
pmd/etc/xslt/pmd-xmlfilter-prio5.xsl
Normal file
15
pmd/etc/xslt/pmd-xmlfilter-prio5.xsl
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='1']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='2']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='3']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
14
pmd/etc/xslt/pmd-xmlfilter-upto-prio2.xsl
Normal file
14
pmd/etc/xslt/pmd-xmlfilter-upto-prio2.xsl
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='3']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
13
pmd/etc/xslt/pmd-xmlfilter-upto-prio3.xsl
Normal file
13
pmd/etc/xslt/pmd-xmlfilter-upto-prio3.xsl
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='4']"/>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
12
pmd/etc/xslt/pmd-xmlfilter-upto-prio4.xsl
Normal file
12
pmd/etc/xslt/pmd-xmlfilter-upto-prio4.xsl
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
<xsl:output method="xml"/>
|
||||
<xsl:template match="node() | @*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node() | @*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="pmd/file/violation[@priority='5']"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
Reference in New Issue
Block a user