diff options
author | Keiron Liddle <keiron@apache.org> | 2000-08-03 04:55:39 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2000-08-03 04:55:39 +0000 |
commit | 67a97954b0daa08d30e482c8c4f923e7bbc3527e (patch) | |
tree | 4f668d1e815d9b1d55e8259ba66e85c39702b26c /docs/examples | |
parent | 66853764c647d54386d487e413e4242a36d601b4 (diff) | |
download | xmlgraphics-fop-67a97954b0daa08d30e482c8c4f923e7bbc3527e.tar.gz xmlgraphics-fop-67a97954b0daa08d30e482c8c4f923e7bbc3527e.zip |
wrapped svg in instream-foreign-object
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193584 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/svg/Document.xsl | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/docs/examples/svg/Document.xsl b/docs/examples/svg/Document.xsl index 0fad34be0..d8a2aa3ba 100644 --- a/docs/examples/svg/Document.xsl +++ b/docs/examples/svg/Document.xsl @@ -19,9 +19,11 @@ <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> @@ -99,11 +101,13 @@ <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'"> @@ -130,7 +134,9 @@ <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> |