Loading ...
Sorry, an error occurred while loading the content.

7157[XSL-FO] Crop marks ... once again (files listed in e-mail)

Expand Messages
  • Henk Hartkamp
    Apr 20, 2006
    • 0 Attachment
      Hello Jirka (and others),

      I m so sorry but the attached files were stripped in this Yahoo group.
      I included the instructions in the xml and xslt. Perhaps i have put them at
      the wrong place. To show you the xml and the xslt files I listed them below.

      XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <?xep-pdf-crop-offset 24pt?>
      <?xep-pdf-bleed 1mm?>
      <?xep-pdf-crop-mark-width 3mm?>
      <cover>
      <titel>Title</titel>
      <voetFront1>Any text1. Any text1. Any text1. Any text1. Any text1.
      </voetFront1>
      <voetFront2>Any text2. Any text2. Any text2. Any text2. Any text2.
      </voetFront2>
      <voetFront3>Language</voetFront3></cover>


      XSLT:

      <?xml version="1.0"?>
      <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


      <!-- Bepaal pagina-indeling en match op root-element -->
      <xsl:template match="cover">
      <fo:root>
      <fo:layout-master-set>
      <fo:simple-page-master master-name="cover" page-height="22.86cm"
      page-width="17.78cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm"
      margin-right="0cm">
      <fo:region-body margin-top="7.2mm" margin-bottom="7.2mm"
      margin-left="1cm" margin-right="1cm" column-count="1"/>
      <fo:region-before extent="0cm"/>
      <fo:region-after extent="0cm"/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="cover">

      <xsl:processing-instruction
      name="xep-pdf-crop-mark-width">1pt</xsl:processing-instruction>
      <xsl:processing-instruction
      name="xep-pdf-crop-offset">3mm</xsl:processing-instruction>
      <xsl:processing-instruction
      name="xep-pdf-bleed">1mm</xsl:processing-instruction>

      <fo:flow flow-name="xsl-region-body">
      <xsl:apply-templates select="titel"/>
      </fo:flow>

      </fo:page-sequence>
      </fo:root>
      </xsl:template>


      <xsl:template match="titel">


      <fo:block-container absolute-position="fixed" top="68.5mm" left="10mm"
      right="10mm" height="12mm">

      <fo:block font-size="21pt">

      <xsl:apply-templates/>

      </fo:block>
      </fo:block-container>



      <fo:block-container absolute-position="fixed" top="204mm" left="10mm"
      right="10mm" height="18mm" display-align="after" break-after="page">
      <fo:block>
      <fo:table padding="0" width="157.8mm" border-width="0">
      <fo:table-column>
      <xsl:attribute name="column-width">
      157.8mm - <xsl:value-of select="string-length(../voetFront3)"/>em
      </xsl:attribute>
      </fo:table-column>


      <fo:table-column>
      <xsl:attribute name="column-width">
      <xsl:value-of select="string-length(../voetFront3)"/>em
      </xsl:attribute>
      </fo:table-column>


      <fo:table-body>
      <fo:table-row>
      <fo:table-cell>
      <fo:block font-size="10pt">
      <xsl:value-of select="../voetFront1"/>
      </fo:block>
      <fo:block font-size="10pt">
      <xsl:value-of select="../voetFront2"/>
      </fo:block>
      </fo:table-cell>
      <fo:table-cell >
      <fo:block>
      <fo:inline font-size="10pt">
      <xsl:value-of select="../voetFront3"/>
      </fo:inline>
      </fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </fo:block>
      </fo:block-container>

      </xsl:template>

      </xsl:stylesheet>


      Who can help?


      Thanks,

      Henk



      -----Oorspronkelijk bericht-----
      Van: XSL-FO@yahoogroups.com [mailto:XSL-FO@yahoogroups.com]Namens Henk
      Hartkamp
      Verzonden: donderdag 20 april 2006 16:35
      Aan: XSL-FO@yahoogroups.com
      Onderwerp: [XSL-FO] Crop marks.


      Hello,

      I am new to this group and I have a question about cropmarks. I use XEP (to
      be sure I also downloaded trial-version 4.5).
      I would like to get cropmarks at the output-pdf.
      I use the processing-instructions "xep-pdf-crop-offset", "xep-pdf-bleed" and
      "xep-pdf-crop-mark-width" in the source xml-file.
      Attached you will find the xml-file and the basic xsl-fo and the output pdf.

      Who can tell me what I do wrong?

      Thanks,

      Henk


      [Non-text portions of this message have been removed]



      SPONSORED LINKS Xml xsl Xsl Xsl fo
      Xsl tutorial


      ----------------------------------------------------------------------------
      ----
      YAHOO! GROUPS LINKS

      a.. Visit your group "XSL-FO" on the web.

      b.. To unsubscribe from this group, send an email to:
      XSL-FO-unsubscribe@yahoogroups.com

      c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      ----------------------------------------------------------------------------
      ----



      [Non-text portions of this message have been removed]
    • Show all 8 messages in this topic