You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/03/05 02:04:33 UTC

cvs commit: cocoon-2.1/src/blocks/fop/samples/misc minimal.fo.xml

joerg       2004/03/04 17:04:33

  Modified:    src/blocks/fop/samples/misc minimal.fo.xml
  Log:
  Point out that this sample contains an image. clean up
  
  Revision  Changes    Path
  1.3       +29 -36    cocoon-2.1/src/blocks/fop/samples/misc/minimal.fo.xml
  
  Index: minimal.fo.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/fop/samples/misc/minimal.fo.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- minimal.fo.xml	22 Jun 2003 06:47:40 -0000	1.2
  +++ minimal.fo.xml	5 Mar 2004 01:04:33 -0000	1.3
  @@ -1,39 +1,32 @@
   <?xml version="1.0" encoding="utf-8"?>
  -
  -<!--  minimal FOP example for Cocoon -->
  -
   <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  -    <fo:layout-master-set>
  -
  -        <!-- layout for all pages -->
  -        <fo:simple-page-master master-name="main"
  -            page-height="29.7cm"
  -            page-width="21cm"
  -            margin-top="1cm"
  -            margin-bottom="2cm"
  -            margin-left="2.5cm"
  -            margin-right="2.5cm">
  -            <fo:region-body margin-top="3cm"/>
  -            <fo:region-before extent="3cm"/>
  -            <fo:region-after extent="1.5cm"/>
  -        </fo:simple-page-master>
  -
  -    </fo:layout-master-set>
  -
  -    <!-- content -->
  -    <fo:page-sequence master-reference="main">
  -
  -        <fo:flow flow-name="xsl-region-body">
  -            <fo:block padding="24pt">
  -                <fo:external-graphic src="/resources/images/cocoon.gif"/>
  -            </fo:block>
  -            <fo:block font-size="18pt">
  -                Congratulations!
  -            </fo:block>
  -            <fo:block font-size="12pt">
  -                If you see this in a PDF document, it means that Cocoon and FOP
  -                were able to generate it from the minimal.fo.xml example document.
  -            </fo:block>
  -        </fo:flow>
  -    </fo:page-sequence>
  +  <fo:layout-master-set>
  +    <!-- layout for all pages -->
  +    <fo:simple-page-master master-name="main"
  +                           page-height="12cm" page-width="20cm"
  +                           margin-top="2cm" margin-bottom="2cm"
  +                           margin-left="2cm" margin-right="2cm">
  +      <fo:region-body margin-top="0cm"/>
  +      <fo:region-before extent="0cm"/>
  +      <fo:region-after extent="0cm"/>
  +    </fo:simple-page-master>
  +  </fo:layout-master-set>
  +
  +  <!-- content -->
  +  <fo:page-sequence master-reference="main">
  +    <fo:flow flow-name="xsl-region-body">
  +      <fo:block padding="24pt">
  +        <fo:external-graphic src="/resources/images/cocoon.gif"/>
  +      </fo:block>
  +      <fo:block font-size="18pt">
  +        Congratulations!
  +      </fo:block>
  +      <fo:block font-size="12pt">
  +        If you see this text in a PDF document, it means that Cocoon and FOP
  +        were able to generate it from the minimal.fo.xml example document. If
  +        you see additionally an image above, it means that even Batik and the
  +        resolving of the image path works!
  +      </fo:block>
  +    </fo:flow>
  +  </fo:page-sequence>
   </fo:root>