Subject: PS output different from PDF




Hi,

we plan to use FOP to create PDF and PS outputs for mails and printing.

PDF creation works fine and output is as expected, but the PS output differs
while using same stylesheet and data (xml).

Is there a reason for this behavior?

This is the stylesheet:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<fo:root>

<!-- define layout templates -->
<fo:layout-master-set>
<!-- define layout template named "kanban" -->
<fo:simple-page-master master-name="kanban"
page-height="215.9mm" page-width="279.4mm" margin-top="88mm"
margin-bottom="86mm" margin-left="130mm" margin-right="58mm">
<fo:region-body margin-right="9mm" margin-top="0mm"
margin-bottom="0mm" background-color="#ffffff" reference-orientation="180"
/>
<fo:region-end extent="8mm" background-color="#1e90ff"
reference-orientation="90" display-align="center"/>
</fo:simple-page-master>
</fo:layout-master-set>

<!-- page contents, refering to a template -->
<fo:page-sequence master-reference="kanban">
<fo:static-content flow-name="xsl-region-end">
<fo:block text-align="center" padding="0mm">
<xsl:value-of
select="steuerdaten/anlieferort"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="6pt" border="0 solid black"
wrap-option="no-wrap">
<fo:table border="0 solid
black" table-layout="fixed" width="100%">
<fo:table-body>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Druckdatum: <xsl:value-of
select="steuerdaten/vdatum"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Schleife Nr.: <xsl:value-of
select="steuerdaten/schleife"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Artikel: <fo:inline font-size="10pt"
font-weight="bold"><xsl:value-of
select="steuerdaten/artikel"/></fo:inline></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Menge: <fo:inline font-size="10pt"
font-weight="bold"><xsl:value-of
select="steuerdaten/menge"/></fo:inline></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm"
number-columns-spanned="1">

<fo:block>Bezeichnung: <xsl:value-of
select="steuerdaten/bezeichnung1"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Name: <xsl:value-of
select="steuerdaten/vsname"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Versorger: <xsl:value-of
select="steuerdaten/vslager"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Lagerplatz: <xsl:value-of
select="steuerdaten/vsplatz"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>BehÃlter/WEK: <xsl:value-of
select="steuerdaten/behaelter"/> / <xsl:value-of
select="steuerdaten/wek"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Anzahl: <xsl:value-of select="steuerdaten/anznr"/> /
<xsl:value-of select="steuerdaten/anzmax"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Verbraucher: <xsl:value-of
select="steuerdaten/vblager"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block>Name: <xsl:value-of
select="steuerdaten/vbname"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block><xsl:value-of select="steuerdaten/ktyp"/></fo:block>

</fo:table-cell>

<fo:table-cell border="0 solid blue" padding="0.3mm">

<fo:block><xsl:value-of select="steuerdaten/vbplatz"/></fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding-top="1mm"
number-columns-spanned="2" text-align="center">
<fo:block>
<fo:instream-foreign-object>
<barcode:barcode
xmlns:barcode="http://barcode4j.krysalis.org/ns";>
<xsl:attribute name="message">
<xsl:value-of select="steuerdaten/barcode" />
</xsl:attribute>
<barcode:code39>
<barcode:height>14mm</barcode:height>
<barcode:module-width>0.29mm</barcode:module-width>
<barcode:human-readable>

<barcode:placement>none</barcode:placement>
</barcode:human-readable>
</barcode:code39>
</barcode:barcode>
</fo:instream-foreign-object>
</fo:block>

</fo:table-cell>
</fo:table-row>
<fo:table-row>

<fo:table-cell border="0 solid blue" padding="0.0mm"
number-columns-spanned="2" text-align="center">

<fo:block><xsl:value-of select="steuerdaten/barcode"/></fo:block>

</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>


This is the data:

<?xml version="1.0" encoding="utf-8"?>
<steuerdaten>
<datenart>4</datenart>
<to>ekanban-wp.tt@xxxxxxxxxxxxxxxxxx</to>
<from>ekanban.tt@xxxxxxxxxxxxxxxxxx</from>
<sub>test</sub>
<firma>test</firma>
<layout>anlieferort_klei</layout>
<artikel>test</artikel>
<menge>test</menge>
<bezeichnung1>test</bezeichnung1>
<bezeichnung2></bezeichnung2>
<vslager>test</vslager>
<behaelter>test</behaelter>
<anznr>test</anznr>
<anzmax>test</anzmax>
<vblager>test</vblager>
<barcode>*test*</barcode>
<vsort>test</vsort>
<vbort>test</vbort>
<ktyp>test</ktyp>
<wek>test</wek>
<vsname>test</vsname>
<vbname>test</vbname>
<vsplatz></vsplatz>
<vbplatz>test</vbplatz>
<vdatum>test</vdatum>
<disponent>test</disponent>
<schleife>test</schleife>
<anlieferort>test</anlieferort>
<ende>1</ende>
</steuerdaten>


And we're creating PDF and PS with those commands:

fop -xml data.xml -xsl test.xsl -ps test.ps
fop -xml data.xml -xsl test.xsl -pdf test.ps

Thanks,
Frank

Here are the two outputs, I hope they are visible ...
http://www.nabble.com/file/p22103120/test.pdf test.pdf
http://www.nabble.com/file/p22103120/test.ps test.ps
--
View this message in context:
http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22103120.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: fop-users-help@xxxxxxxxxxxxxxxxxxxxxx



Privacy