From: Jeremias M. <jm...@us...> - 2006-01-25 09:23:07
|
Update of /cvsroot/barcode4j/barcode4j/examples/xsl-fo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12070/examples/xsl-fo Modified Files: fop-extension-demo.fo Log Message: Refactored the example to better show all the different render-modes. Index: fop-extension-demo.fo =================================================================== RCS file: /cvsroot/barcode4j/barcode4j/examples/xsl-fo/fop-extension-demo.fo,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fop-extension-demo.fo 20 Jan 2006 13:52:19 -0000 1.4 --- fop-extension-demo.fo 25 Jan 2006 09:22:56 -0000 1.5 *************** *** 2,16 **** <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="sans-serif" font-size="10pt"> <fo:layout-master-set> ! <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="0.4cm" margin-left="2cm" margin-right="2cm"> <fo:region-body margin-bottom="2.3cm"/> <fo:region-after extent="2.2cm"/> </fo:simple-page-master> </fo:layout-master-set> ! <fo:page-sequence master-reference="simpleA4" language="de_CH"> <fo:static-content flow-name="xsl-region-after"> ! <fo:block text-align="center" font-style="italic">This PDF was generated using Barcode4J (<fo:basic-link external-destination="url(http://barcode4j.krysalis.org)">http://barcode4j.krysalis.org</fo:basic-link>) and Apache FOP (<fo:basic-link external-destination="url(http://xml.apache.org/fop)">http://xml.apache.org/fop</fo:basic-link>)</fo:block> <fo:block text-align="end"> ! <fo:instream-foreign-object background-color="green"> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="#page-number#"> <bc:code39> <bc:height>1cm</bc:height> --- 2,20 ---- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="sans-serif" font-size="10pt"> <fo:layout-master-set> ! <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="0.4cm" margin-left="2cm" margin-right="2cm"> <fo:region-body margin-bottom="2.3cm"/> <fo:region-after extent="2.2cm"/> </fo:simple-page-master> </fo:layout-master-set> ! <fo:page-sequence master-reference="A4" language="en"> <fo:static-content flow-name="xsl-region-after"> ! <fo:block text-align="center" font-style="italic"> ! This PDF was generated using ! Barcode4J (<fo:basic-link external-destination="url(http://barcode4j.krysalis.org)">http://barcode4j.krysalis.org</fo:basic-link>) ! and Apache FOP (<fo:basic-link external-destination="url(http://xmlgraphics.apache.org/fop)">http://xmlgraphics.apache.org/fop</fo:basic-link>) ! </fo:block> <fo:block text-align="end"> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="#page-number:000#"> <bc:code39> <bc:height>1cm</bc:height> *************** *** 26,41 **** <fo:block>Some simple examples:</fo:block> <fo:block space-before="3mm"> ! <fo:table table-layout="fixed"> ! <fo:table-column column-width="8.5cm"/> ! <fo:table-column column-width="8.5cm"/> <fo:table-header> <fo:table-row background-color="blue" color="white"> <fo:table-cell padding-top="1mm" padding-bottom="1mm"> ! <fo:block>render-mode: default</fo:block> ! <fo:block font-style="italic" font-size="8pt">For FOP 0.20.5 this defaults to "svg".</fo:block> ! <fo:block font-style="italic" font-size="8pt">For FOP post-0.20.5 this defaults to "native".</fo:block> </fo:table-cell> ! <fo:table-cell padding-top="1mm" padding-bottom="1mm"> ! <fo:block>render-mode: svg</fo:block> </fo:table-cell> </fo:table-row> --- 30,51 ---- <fo:block>Some simple examples:</fo:block> <fo:block space-before="3mm"> ! <fo:table table-layout="fixed" width="100%" border-collapse="separate"> ! <fo:table-column column-width="3.5cm"/> ! <fo:table-column column-width="4cm"/> ! <fo:table-column column-width="4.5cm"/> ! <fo:table-column column-width="5cm"/> <fo:table-header> <fo:table-row background-color="blue" color="white"> <fo:table-cell padding-top="1mm" padding-bottom="1mm"> ! <fo:block>render-mode</fo:block> </fo:table-cell> ! <fo:table-cell padding-top="1mm" padding-bottom="1mm" text-align="center"> ! <fo:block>PostNet</fo:block> ! </fo:table-cell> ! <fo:table-cell padding-top="1mm" padding-bottom="1mm" text-align="center"> ! <fo:block>Code39</fo:block> ! </fo:table-cell> ! <fo:table-cell padding-top="1mm" padding-bottom="1mm" text-align="center"> ! <fo:block>EAN-13</fo:block> </fo:table-cell> </fo:table-row> *************** *** 43,52 **** <fo:table-body> <fo:table-row height="5mm"> ! <fo:table-cell> ! <fo:block/> </fo:table-cell> ! </fo:table-row> ! <fo:table-row> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> --- 53,60 ---- <fo:table-body> <fo:table-row height="5mm"> ! <fo:table-cell display-align="center" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>default</fo:block> </fo:table-cell> ! <fo:table-cell display-align="center" text-align="center" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> *************** *** 57,80 **** </fo:block> </fo:table-cell> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="1234" render-mode="svg"> ! <bc:postnet/> </bc:barcode> </fo:instream-foreign-object> </fo:block> </fo:table-cell> ! </fo:table-row> ! <fo:table-row height="5mm"> ! <fo:table-cell> ! <fo:block/> </fo:table-cell> </fo:table-row> <fo:table-row> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622"> <bc:code39> <bc:human-readable>top</bc:human-readable> --- 65,116 ---- </fo:block> </fo:table-cell> ! <fo:table-cell text-align="center" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622"> ! <bc:code39> ! <bc:human-readable>top</bc:human-readable> ! </bc:code39> </bc:barcode> </fo:instream-foreign-object> </fo:block> </fo:table-cell> ! <fo:table-cell text-align="center" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07"> ! <bc:ean-13> ! <bc:human-readable>top</bc:human-readable> ! </bc:ean-13> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> ! <fo:table-cell number-columns-spanned="4" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>Some notes about the render-mode attribute:</fo:block> ! <fo:block font-style="italic" font-size="8pt">For FOP 0.20.5 this defaults to "svg".</fo:block> ! <fo:block font-style="italic" font-size="8pt">For FOP post-0.20.5 this defaults to "native".</fo:block> ! <fo:block font-style="italic" font-size="8pt">For FOP 0.91 and later this defaults to "native".</fo:block> ! </fo:table-cell> ! </fo:table-row> ! <fo:table-row height="5mm"> ! <fo:table-cell display-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>svg</fo:block> ! </fo:table-cell> ! <fo:table-cell display-align="center" text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="1234" render-mode="svg"> ! <bc:postnet/> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622" render-mode="svg"> <bc:code39> <bc:human-readable>top</bc:human-readable> *************** *** 84,91 **** </fo:block> </fo:table-cell> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622" render-mode="svg"> <bc:code39> <bc:human-readable>top</bc:human-readable> --- 120,152 ---- </fo:block> </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07" render-mode="svg"> ! <bc:ean-13> ! <bc:human-readable>top</bc:human-readable> ! </bc:ean-13> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! </fo:table-row> ! <fo:table-row height="5mm"> ! <fo:table-cell display-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>native</fo:block> ! </fo:table-cell> ! <fo:table-cell display-align="center" text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="1234" render-mode="native"> ! <bc:postnet/> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622" render-mode="native"> <bc:code39> <bc:human-readable>top</bc:human-readable> *************** *** 95,109 **** </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row height="5mm"> ! <fo:table-cell> ! <fo:block/> </fo:table-cell> ! </fo:table-row> ! <fo:table-row> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07"> <bc:ean-13> <bc:human-readable>top</bc:human-readable> --- 156,199 ---- </fo:block> </fo:table-cell> + <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> + <fo:block> + <fo:instream-foreign-object> + <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07" render-mode="native"> + <bc:ean-13> + <bc:human-readable>top</bc:human-readable> + </bc:ean-13> + </bc:barcode> + </fo:instream-foreign-object> + </fo:block> + </fo:table-cell> </fo:table-row> <fo:table-row height="5mm"> ! <fo:table-cell display-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>g2d</fo:block> </fo:table-cell> ! <fo:table-cell display-align="center" text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="1234" render-mode="g2d"> ! <bc:postnet/> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622" render-mode="g2d"> ! <bc:code39> ! <bc:human-readable>top</bc:human-readable> ! </bc:code39> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07" render-mode="g2d"> <bc:ean-13> <bc:human-readable>top</bc:human-readable> *************** *** 113,120 **** </fo:block> </fo:table-cell> ! <fo:table-cell> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07" render-mode="svg"> <bc:ean-13> <bc:human-readable>top</bc:human-readable> --- 203,235 ---- </fo:block> </fo:table-cell> ! </fo:table-row> ! <fo:table-row height="5mm"> ! <fo:table-cell display-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block>bitmap</fo:block> ! </fo:table-cell> ! <fo:table-cell display-align="center" text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> <fo:block> <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="1234" render-mode="bitmap"> ! <bc:postnet/> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="603716A64622" render-mode="bitmap"> ! <bc:code39> ! <bc:human-readable>top</bc:human-readable> ! </bc:code39> ! </bc:barcode> ! </fo:instream-foreign-object> ! </fo:block> ! </fo:table-cell> ! <fo:table-cell text-align="center" border-bottom="solid 1pt" padding-top="1mm" padding-bottom="1mm"> ! <fo:block> ! <fo:instream-foreign-object> ! <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns" message="4194586705506+07" render-mode="bitmap"> <bc:ean-13> <bc:human-readable>top</bc:human-readable> *************** *** 128,131 **** --- 243,248 ---- </fo:table> </fo:block> + <fo:block space-before="5mm"> + </fo:block> <fo:block break-before="page" font-weight="bold" space-before="2cm">Using the current page number as part of the message: xxx#page-number#xxx</fo:block> <fo:block> |