pixi2010 писал(а):
что не так????
<fo:table table-layout="fixed">
<fo:table-column column-width="5cm" />
<fo:table-column column-width="3cm" />
<fo:table-column column-width="2cm" />
<fo:table-column column-width="1.8cm" />
<fo:table-column column-width="2.5cm" />
<fo:table-column column-width="1.2cm" />
<fo:table-column column-width="1.3cm" />
<fo:table-column column-width="1.9cm" />
<fo:table-column column-width="1.9cm" />
<fo:table-column column-width="2.7cm" />
<fo:table-column column-width="2.5cm" />
<fo:table-header>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Наименование товара (описание выполненных работ, оказанных услуг), имущественного права</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border" number-columns-spanned="2">
<!-- Вложенная таблица внутри ячейки -->
<fo:block>
<fo:table table-layout="fixed">
<fo:table-column column-width="0.8cm" />
<fo:table-column column-width="1.9cm" />
<fo:table-body>
<fo:table-row >
<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Единица измерения
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Код
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Условное обозначение (национальное)
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Коли- чество (объем)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Цена (тариф) за единицу измерения</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Стоимость товаров (работ, услуг), имущественных прав, всего без налога</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">В том числе акциз</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Нало- говая ставка</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Сумма налога предъявляемая покупателю</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Стоимость товаров (работ, услуг), имущественных прав, всего с учетом налога</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border" number-columns-spanned="2">
<!-- Вложенная таблица внутри ячейки -->
<fo:block>
<fo:table table-layout="fixed">
<fo:table-column column-width="0.8cm" />
<fo:table-column column-width="1.9cm" />
<fo:table-body>
<fo:table-row >
<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Единица измерения
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Код
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text6_center">Условное обозначение (национальное)
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">Номер таможенной декларации</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">1</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">2</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">2а</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">3</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">4</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">5</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">6</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">7</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">8</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">9</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">10</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">10а</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">11</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each select="pos">
<xsl:variable name="nds" select="number((@summ * ($nds_rate div 100))div($nds_rate div 100 + 1))" />
<xsl:value-of select="counter:add( 'total_nds', format-number($nds, '0.00') )"/>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_left"><xsl:value-of select="@name"/> (<xsl:value-of select="/data/bill/@yy"/><xsl:value-of select="/data/bill/@month"/> дог.№ <xsl:value-of select="/data/bill/@contract"/> от <xsl:value-of select="/data/bill/@contract_date1"/>)</fo:block>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center">
<xsl:if test="@unit">
<xsl:value-of select="@unit"/>
</xsl:if>
<xsl:if test="not(@unit)">
шт.
</xsl:if>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right">
<xsl:if test="@quantity">
<xsl:value-of select="@quantity"/>
</xsl:if>
<xsl:if test="not(@quantity)">
1
</xsl:if>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number((@summ div @quantity) div 1, '#0.00' )"/></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number(@summ - $nds, '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_center"><xsl:value-of select="format-number($nds_rate, '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number($nds, '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number(@summ, '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right">-</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right">-</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
<fo:table-row>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="table_text7_left">Всего к оплате</fo:block>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
<!-- <fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number(@total_sum - $total_nds, '0.00')"/></fo:block> -->
</fo:table-cell>
<fo:table-cell>
<!-- <fo:block xsl:use-attribute-sets="table_text7_right"></fo:block> -->
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number(counter:get( 'total_nds' ), '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell_border">
<fo:block xsl:use-attribute-sets="table_text7_right"><xsl:value-of select="format-number(@total_sum, '0.00')"/></fo:block>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
Проверяй в оконцове The prefix "fo" for element "fo:table" is not bound.