]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
put svg in instream-foreign-object
authorKeiron Liddle <keiron@apache.org>
Thu, 3 Aug 2000 06:58:56 +0000 (06:58 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 3 Aug 2000 06:58:56 +0000 (06:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193602 13f79535-47bb-0310-9956-ffa450edef68

docs/bugtests/svg-apachexml.fo
docs/bugtests/svg-lingrad.fo
docs/examples/fo/extensive.fo

index fd908c090363911c83c29f93b59848363d477b73..0adea86e6f0140f1066245cc926de62f570c269e 100644 (file)
@@ -6,6 +6,7 @@
 </fo:layout-master-set>
 <fo:page-sequence master-name="one">
 <fo:flow flow-name="xsl-region-body">
+<fo:instream-foreign-object>
 <svg:svg xml:space="preserve" width="570.129" height="754.902">
 <svg:g id="Layer_x0020_1">
        <svg:path style="fill-rule:nonzero;fill:#0086B3;stroke:#000000;stroke-width:2.8346;stroke-miterlimit:4;" d="M568.712,753.485H1.417V1.417h567.295v752.068z"/>
        </svg:g>
 </svg:g>
 </svg:svg>
+</fo:instream-foreign-object>
 </fo:flow>
 </fo:page-sequence>
 </fo:root>
index c301f07b93b8ffbc199ffac66489de8c6144ff8e..d14d6ce9bee99db70a819128154127c4a0df771e 100644 (file)
@@ -6,6 +6,7 @@
 </fo:layout-master-set>
 <fo:page-sequence master-name="one">
 <fo:flow flow-name="xsl-region-body">
+<fo:instream-foreign-object>
 <svg:svg width="500" height="400">
   <svg:defs>
     <svg:linearGradient id="myGradient" x1="0" y1="200" x2="500" y2="350">
@@ -18,6 +19,7 @@
      <svg:rect x="0" y="180" width="400" height="10"/>
   </svg:g>
 </svg:svg>
+</fo:instream-foreign-object>
       <fo:block>The above is an example of an SVG graphic</fo:block>
     </fo:flow>
   </fo:page-sequence>
index c4f06c2b4feaa65b258c2887df3906085491247a..9ef9368d4da8e899983c537419839c6719b5bb2e 100644 (file)
 ]]>
 </fo:block>
       <fo:block break-before="page" font-size="24pt" line-height="28pt" space-before.optimum="12pt" space-after.optimum="12pt">Embedded SVG</fo:block>
-      <svg:svg width="400pt" height="200pt">
-        <svg:rect x="20pt" y="20pt" width="100pt" height="100pt"/>
-        <svg:line x1="20pt" y1="20pt" x2="120pt" y2="120pt"/>
-        <svg:line x1="120pt" y1="20pt" x2="20pt" y2="120pt"/>
-        <svg:text x="20pt" y="150pt">Hello SVG!</svg:text>
-      </svg:svg>
+      <fo:instream-foreign-object>
+        <svg:svg width="400pt" height="200pt">
+          <svg:rect x="20pt" y="20pt" width="100pt" height="100pt"/>
+          <svg:line x1="20pt" y1="20pt" x2="120pt" y2="120pt"/>
+          <svg:line x1="120pt" y1="20pt" x2="20pt" y2="120pt"/>
+          <svg:text x="20pt" y="150pt">Hello SVG!</svg:text>
+        </svg:svg>
+      </fo:instream-foreign-object>
       <fo:block>The above is an example of an SVG graphic</fo:block>
     </fo:flow>
   </fo:page-sequence>