<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version="1.0">
<xsl:output method="text" encoding="us-ascii" indent="yes"/>

<xsl:template match="/">
<xsl:for-each select="//Class">public class <xsl:value-of select="Gen-it:CapFirst(Class.name)"/>
{
	<xsl:for-each select="Attribute">
	<xsl:apply-templates select="." mode="datatype"/><xsl:apply-templates select="." mode="variable"/> = new <xsl:apply-templates select="." mode="newdatatype"/>;
	</xsl:for-each>
	<xsl:for-each select="Attribute">
	public void set<xsl:value-of select="Gen-it:CapFirst(Attribute.name)"/>(<xsl:apply-templates select="." mode="datatype"/>value)
	{
		<xsl:apply-templates select="." mode="variable"/> = value;
	}
	public <xsl:apply-templates select="." mode="datatype"/>get<xsl:value-of select="Gen-it:CapFirst(Attribute.name)"/>()
	{
		return <xsl:apply-templates select="." mode="variable"/>;
	}</xsl:for-each>
}
</xsl:for-each>
</xsl:template>
