Добрый день
Пытаюсь изменить печатную форму наряда. Решил сделать как для card_inet.xsl вывод через xml (мне удобнее форматировать текст так)
Вроде всё ничего, но почему-то у меня первой строкой печатается
Код:
?xml version="1.0" encoding="windows-1251"?>
почему, никак не могу понять
вот содержание моего xsl
Код:
<?xml version="1.0" encoding="windows-1251"?><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:sql="bitel.billing.server.util.exslt.SQLQuery"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:exslt="http://exslt.org/common"
xmlns:svg="http://www.w3.org/2000/svg" version="1.0">
<xalan:component prefix="sql" functions="select">
<xalan:script lang="javaclass" src="xalan://bitel.billing.server.util.exslt.SQLQuery"/>
</xalan:component>
<xsl:output method="xml" encoding="windows-1251" indent="yes"/>
<xsl:attribute-set name="text_dog">
<xsl:attribute name="font-family">arial</xsl:attribute>
<xsl:attribute name="text-align">justify</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="start-indent">0.1cm</xsl:attribute>
<xsl:attribute name="end-indent">0.1cm</xsl:attribute>
<xsl:attribute name="text-decoration">none</xsl:attribute>
<xsl:attribute name="padding-top">-0.3cm</xsl:attribute>
<xsl:attribute name="padding-bottom">0cm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_bold_center">
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="font-family">arial</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="start-indent">0.1cm</xsl:attribute>
<xsl:attribute name="end-indent">0.1cm</xsl:attribute>
<xsl:attribute name="text-decoration">none</xsl:attribute>
<xsl:attribute name="padding-top">-0.3cm</xsl:attribute>
<xsl:attribute name="padding-bottom">0cm</xsl:attribute>
</xsl:attribute-set>
------------------------------//////////----------------------------------------------
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master margin-right="1cm" margin-left="1.5cm" margin-bottom="0.7cm"
margin-top="0.8cm" page-width="21cm" page-height="29.7cm" master-name="first">
<fo:region-body margin-top="0.0cm" margin-bottom="0.0cm"/>
<fo:region-before extent="0.0cm"/>
<fo:region-after extent="0.0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<!-- заголовок -->
<fo:block xsl:use-attribute-sets="text_bold_center" space-after="0.5cm"> Наряд №
<xsl:value-of select="$task/row/@id"/> от <xsl:value-of
select="$task/row/@execute_dt"/>
</fo:block>
------------------------------//////////----------------------------------------------
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
Подскажите, из-за чего такое может быть?