You're producing one Data element for each ScheduleDetail element in the input, so you will want something like
<xsl:template match="ScheduleDetail">
<Data>
...
</Data>
</xsl:template>
The StartDate, EndDate, and Quantity elements can be copied over using <xsl:copy-of select="*"/>, and the Product can be added as
<Product><xsl:value-of select="../preceding-sibling::Id"/></Product>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference