<?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" version="1.0" indent="yes" encoding="UTF-8"/>
        <xsl:strip-space elements="*"/>
	
        
        <xsl:template match="/">
		<project company="firma" name="projektname" view-date="2008-04-14" view-index="0" gantt-divider-location="459" resource-divider-location="301" version="2.0">
                        
			<description><![CDATA[Beschreibung]]></description>
			<view zooming-state="default:3" id="gantt-chart"/>
			<view id="resource-table">
			        <field id="0" name="Ressource" width="55" order="0"/>
                                <field id="1" name="Rolle" width="44" order="1"/>
			</view>
                        <!-- -->
			<calendars>
			    <day-types>
				<day-type id="0"/>
				<day-type id="1"/>
				<calendar id="1" name="default">
				    <default-week sun="1" mon="0" tue="0" wed="0" thu="0" fri="0" sat="1"/>
				    <overriden-day-types/>
				    <days/>
				</calendar>
			    </day-types>
			</calendars>
			<tasks color="#66cc00">
				<taskproperties>
					<taskproperty id="tpd0" name="type" type="default" valuetype="icon"/>
					<taskproperty id="tpd1" name="priority" type="default" valuetype="icon"/>
					<taskproperty id="tpd2" name="info" type="default" valuetype="icon"/>
					<taskproperty id="tpd3" name="name" type="default" valuetype="text"/>
					<taskproperty id="tpd4" name="begindate" type="default" valuetype="date"/>
					<taskproperty id="tpd5" name="enddate" type="default" valuetype="date"/>
					<taskproperty id="tpd6" name="duration" type="default" valuetype="int"/>
					<taskproperty id="tpd7" name="completion" type="default" valuetype="int"/>
					<taskproperty id="tpd8" name="coordinator" type="default" valuetype="text"/>
					<taskproperty id="tpd9" name="predecessorsr" type="default" valuetype="text"/>
				</taskproperties>
				<task color="#8cb6ce" meeting="false" start="2008-07-15" duration="1" complete="0" priority="1" expand="true" id="0" name="projektname">
                                <xsl:apply-templates/>
                                </task>
			</tasks>
                        <resources/>
                        <allocations/>
                        <vacations/>
                        <taskdisplaycolumns>
                            <displaycolumn property-id="tpd3" order="0" width="233"/>
                            <displaycolumn property-id="tpd4" order="1" width="68"/>
                            <displaycolumn property-id="tpd5" order="2" width="67"/>
                        </taskdisplaycolumns>
                        <previous/>
                        <roles roleset-name="Default"/>
		</project>
	</xsl:template>
	<xsl:template match="node" name="mynodes">
		<xsl:for-each select="node">
			<task color="#8cb6ce" meeting="false" start="2008-07-15" duration="1" complete="0" priority="1" expand="true">
				<xsl:attribute name="id"><xsl:number level="any"/></xsl:attribute>
				<xsl:attribute name="name"><xsl:value-of select="@TEXT"/></xsl:attribute>
				<xsl:call-template name="mynodes"/>
			</task>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>

