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

docs/examples/svg/Document.xsl

index 0fad34be04f6d5493446e8008d7e3553babc9e47..d8a2aa3baf8f887cf7e5d27df7596cd610c4280a 100644 (file)
                                <fo:flow font-size="14pt" line-height="14pt">
                            <fo:block-container height="20cm" width="6cm" top="2cm" left="-1cm" position="absolute">
                                                <fo:block>
-                                                   <svg:svg width="20" height="19.5cm">
-                                                       <svg:line style="stroke-width:1.5" x1="10" y1="0" x2="10" y2="20cm"/>
-                                                   </svg:svg>
+                                                       <fo:instream-foreign-object>
+                                                           <svg:svg width="20" height="19.5cm">
+                                                               <svg:line style="stroke-width:1.5" x1="10" y1="0" x2="10" y2="20cm"/>
+                                                           </svg:svg>
+                                                       </fo:instream-foreign-object>
                                                </fo:block>
                            </fo:block-container>
 
                <xsl:variable name="name" select="."/>
 
                <fo:block text-align="start" font-size="11pt" line-height="11pt">
-                       <xsl:for-each select="document(@file)/Diagrams/Diagram">
-                               <xsl:if test="$name=@entry">
-                                       <xsl:apply-templates/>
-                               </xsl:if>
-                       </xsl:for-each>
+                       <fo:instream-foreign-object>
+                               <xsl:for-each select="document(@file)/Diagrams/Diagram">
+                                       <xsl:if test="$name=@entry">
+                                               <xsl:apply-templates/>
+                                       </xsl:if>
+                               </xsl:for-each>
+                       </fo:instream-foreign-object>
                </fo:block>
 
                <xsl:if test="@showcode='true'">
 
        <xsl:template match="ExternalSVG">
                <fo:block text-align="start" font-size="11pt" line-height="11pt">
-                       <xsl:apply-templates select="document(@file)/svg:svg" mode="svg"/>
+                       <fo:instream-foreign-object>
+                               <xsl:apply-templates select="document(@file)/svg:svg" mode="svg"/>
+                       </fo:instream-foreign-object>
                </fo:block>
        </xsl:template>