<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:template match="application">
		<application>
			<xsl:apply-templates select="component"/>
		</application>
	</xsl:template>
	<xsl:template match="component">
		<component name="libraryTable">
			<xsl:apply-templates select="library"/>
		</component>
	</xsl:template>
	<xsl:template match="library">
		<library name="{name/@value}">
			<xsl:apply-templates select="roots"/>
		</library>
	</xsl:template>
	<xsl:template match="roots">
		<xsl:apply-templates select="sourcePath"/>
		<xsl:apply-templates select="classPath"/>
		<xsl:apply-templates select="javadocPath"/>
	</xsl:template>
	<xsl:template match="classPath">
		<CLASSES>
			<xsl:apply-templates select="root/root"/>
		</CLASSES>
	</xsl:template>
	<xsl:template match="javadocPath">
		<JAVADOC>
			<xsl:apply-templates select="root/root"/>
		</JAVADOC>
	</xsl:template>
	<xsl:template match="sourcePath">
		<SOURCES>
			<xsl:apply-templates select="root/root"/>
		</SOURCES>
	</xsl:template>
	<xsl:template match="root">
		<root>
			<xsl:attribute name="url"><xsl:value-of select="@url"/></xsl:attribute>
		</root>
	</xsl:template>
</xsl:stylesheet>
