forked from phoedos/pmd

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7535 51baf565-9d33-0410-a72c-fc3788e3496d
28 lines
820 B
XML
28 lines
820 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet
|
|
version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:template match="root">
|
|
<xsl:comment>
|
|
THIS FILE HAS BEEN AUTOMATICLY GENERATED.
|
|
</xsl:comment>
|
|
<rulesets>
|
|
<xsl:apply-templates/>
|
|
</rulesets>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ruleset">
|
|
<!-- Opening the appropriate file -->
|
|
<xsl:variable name="filename" select="@file"/>
|
|
<xsl:element name="language">
|
|
<xsl:attribute name="name"><xsl:value-of select="@language"/></xsl:attribute>
|
|
|
|
<!-- Adding to our tree all the nodes present there -->
|
|
<xsl:variable name="rules_file" select="document($filename)"/>
|
|
<xsl:copy-of select="$rules_file"/>
|
|
</xsl:element>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|