cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: cocoon-2.1/src/blocks/fop/samples/misc samples.xml
Date Sat, 06 Mar 2004 02:34:33 GMT
joerg       2004/03/05 18:34:33

  Modified:    src/blocks/fop/samples/misc samples.xml
  Added:       src/blocks/fop/samples/misc
  embedded svg test added
  Revision  Changes    Path
  1.7       +10 -5     cocoon-2.1/src/blocks/fop/samples/misc/samples.xml
  Index: samples.xml
  RCS file: /home/cvs/cocoon-2.1/src/blocks/fop/samples/misc/samples.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- samples.xml	6 Mar 2004 02:26:13 -0000	1.6
  +++ samples.xml	6 Mar 2004 02:34:33 -0000	1.7
  @@ -14,9 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   <!-- CVS $Id$ -->
   <samples xmlns:xlink="">
       <group name="Main examples page.">
  @@ -30,11 +28,18 @@
           <sample name="Hello, PDF world!" href="hello.pdf">
               The well-known hello.xml document rendered as PDF.
  -        <sample name="XSL-FO document" href="misc/">
  +        <sample name="minimal XSL-FO document" href="misc/">
               Source document used by FOP in the next example.
  -        <sample name="PDF output" href="misc/minimal.pdf">
  +        <sample name="minimal PDF output" href="misc/minimal.pdf">
               PDF version of the above document
  +        </sample>
  +        <sample name="SVG test XSL-FO document" href="misc/">
  +            Source document for testing embedded SVG in FOP. Should enforce
  +            possible problems with our FOP and our Batik if they are incompatible.
  +        </sample>
  +        <sample name="SVG test PDF output" href="misc/svgtest.pdf">
  +            PDF version of the above document.
  1.1                  cocoon-2.1/src/blocks/fop/samples/misc/
  <?xml version="1.0" encoding="UTF-8"?>
    Copyright 1999-2004 The Apache Software Foundation
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  <!-- CVS $Id:,v 1.1 2004/03/06 02:34:33 joerg Exp $ -->
  <fo:root xmlns:svg="" xmlns:xlink=""
      <fo:simple-page-master margin-right="0.5in" margin-left="0.5in" margin-bottom="0.5in"
margin-top="0.5in" page-width="8.5in" page-height="11.5in" master-name="all">
        <fo:region-body margin-bottom="0.25in" margin-top="0.25in"/>
        <fo:region-before extent="0.25in"/>
        <fo:region-after extent="0.25in"/>
    <fo:page-sequence master-reference="all">
      <fo:flow flow-name="xsl-region-body">
        <fo:block text-align="center">
          <fo:instream-foreign-object text-align="center">
            <svg:svg xmlns:xlink="" width="6in" height="6in"
viewBox="0 0 1400 1400">
                <svg:g style="stroke:green;fill:green" id="greenRect">
                  <svg:rect x="0" y="0" width="100" height="100"/>
                <svg:g id="yellowGreenRect">
                  <svg:rect x="0" y="0" width="200" height="200" style="stroke:yellow;fill:yellow"/>
                  <svg:use transform="translate(400,400)" xlink:href="#greenRect"/>
              <svg:rect x="0" y="0" width="1600" height="1600" style="stroke-width:1;stroke:black;fill:red"/>
              <svg:use xlink:href="#yellowGreenRect"/>

View raw message