  <xsl:template match="//#HEADER_TABLE_NAME#">
    <Worksheet>
      <xsl:attribute name="Name" namespace="urn:schemas-microsoft-com:office:spreadsheet">
        <xsl:value-of select="$#HEADER_TABLE_NAME#/Name"/>
      </xsl:attribute>
      <Names>
        <NamedRange>
          <xsl:attribute name="Name" namespace="urn:schemas-microsoft-com:office:spreadsheet">_FilterDatabase</xsl:attribute>
          <xsl:attribute name="RefersTo" namespace="urn:schemas-microsoft-com:office:spreadsheet">
            <xsl:value-of select="$#HEADER_TABLE_NAME#/Filter_Area"/>
          </xsl:attribute>
		  <xsl:attribute name="Hidden" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
        </NamedRange>

        <NamedRange>
          <xsl:attribute name="Name" namespace="urn:schemas-microsoft-com:office:spreadsheet">Print_Area</xsl:attribute>
          <xsl:attribute name="RefersTo" namespace="urn:schemas-microsoft-com:office:spreadsheet">
            <xsl:value-of select="$#HEADER_TABLE_NAME#/Print_Area"/>
          </xsl:attribute>
        </NamedRange>
        <NamedRange>
          <xsl:attribute name="Name" namespace="urn:schemas-microsoft-com:office:spreadsheet">Print_Titles</xsl:attribute>
          <xsl:attribute name="RefersTo" namespace="urn:schemas-microsoft-com:office:spreadsheet">
            <xsl:value-of select="$#HEADER_TABLE_NAME#/Print_Titles"/>
          </xsl:attribute>
        </NamedRange>
      </Names>        
      <Table>
        <xsl:attribute name="ExpandedColumnCount" namespace="urn:schemas-microsoft-com:office:spreadsheet">
          <xsl:value-of select="$#HEADER_TABLE_NAME#/ExpandedColumnCount"/>
        </xsl:attribute>
        <xsl:attribute name="ExpandedRowCount" namespace="urn:schemas-microsoft-com:office:spreadsheet">
          <xsl:value-of select="$#HEADER_TABLE_NAME#/ExpandedRowCount"/>
        </xsl:attribute>
        <xsl:attribute name="FullColumns" namespace="urn:schemas-microsoft-com:office:excel">1</xsl:attribute>
        <xsl:attribute name="FullRows" namespace="urn:schemas-microsoft-com:office:excel">1</xsl:attribute>
        <xsl:attribute name="DefaultRowHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">15</xsl:attribute>
		<xsl:attribute name="DefaultColumnWidth" namespace="urn:schemas-microsoft-com:office:spreadsheet">60</xsl:attribute>
		#COLUMNS_WIDTH#
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet">
              <xsl:value-of select="$#HEADER_TABLE_NAME#/MergeAcross"/>
            </xsl:attribute>
            <xsl:attribute name="MergeDown" namespace="urn:schemas-microsoft-com:office:spreadsheet">
              <xsl:value-of select="$#HEADER_TABLE_NAME#/MergeDown"/>
            </xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">HeaderInventario</xsl:attribute>
            <Data>
              <xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">String</xsl:attribute>
              <xsl:value-of select="$#HEADER_TABLE_NAME#/Title"/>
            </Data>
          </Cell>
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="MergeDown" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">PeriodoInventarioText</xsl:attribute>
            <Data><xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">String</xsl:attribute>Periodo di riferimento:</Data>
          </Cell>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="MergeDown" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">PeriodoInventarioDateTime</xsl:attribute>
            <Data><xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">DateTime</xsl:attribute>
              <xsl:value-of select="$#HEADER_TABLE_NAME#/DataInventarioPrecedente"/>
            </Data>
          </Cell>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="MergeDown" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">PeriodoInventarioDateTime</xsl:attribute>
            <Data><xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">DateTime</xsl:attribute>
              <xsl:value-of select="$#HEADER_TABLE_NAME#/DataInventario"/>
            </Data>
          </Cell>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet"><xsl:value-of select="MergeAcrossPeriodo"/></xsl:attribute>
            <xsl:attribute name="MergeDown" namespace="urn:schemas-microsoft-com:office:spreadsheet">1</xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">PeriodoInventarioText</xsl:attribute>
            <Data><xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">String</xsl:attribute></Data>
          </Cell>        
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
          #CELLS_DATA_HEADERS#
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        </Row>
        <xsl:apply-templates select="//#DATA_TABLE_NAME#" />
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        </Row>
        <Row>
          <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
          <Cell>
            <xsl:attribute name="MergeAcross" namespace="urn:schemas-microsoft-com:office:spreadsheet">
              <xsl:value-of select="$#HEADER_TABLE_NAME#/MergeAcross"/>
            </xsl:attribute>
            <xsl:attribute name="StyleID" namespace="urn:schemas-microsoft-com:office:spreadsheet">FooterInventario</xsl:attribute>
            <Data>
              <xsl:attribute name="Type" namespace="urn:schemas-microsoft-com:office:spreadsheet">String</xsl:attribute>Totali</Data>
          </Cell>
        </Row>
		<xsl:apply-templates select="//#TOTAL_TABLE_NAME#" />
      </Table>
    </Worksheet>
</xsl:template>
<xsl:template match="//#DATA_TABLE_NAME#">
      <Row>
        <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        #CELLS_TABLE_VALUES#
      </Row>
</xsl:template>
<xsl:template match="//#TOTAL_TABLE_NAME#">
      <Row>
        <xsl:attribute name="AutoFitHeight" namespace="urn:schemas-microsoft-com:office:spreadsheet">0</xsl:attribute>
        #CELLS_TABLE_VALUES#
      </Row>
</xsl:template>