XSL-FO instream-foreign-object 对象

XSL-FO 参考手册

定义和用法

<fo:instream-foreign-object> 对象用于内联图形或 "generic" 类对象。在其中,对象的数据以 <fo:instream-foreign-object> 的后代形式存在。通常情况下,是作为一个非 XSL 命名空间中的 XML 元素子树(一个常见的格式是 SVG)存储于其内部。

该对象的内容尺寸大小是通过调用对象的 size 属性来定义的,并通过指定 content-height、content-width 以及 scaling 属性来缩放尺寸大小。

如果尺寸放大后内容太大了,那么可以使用 overflow 属性来设置滚动条对溢出部分进行浏览。

语法

<fo:instream-foreign-object>
  <!--
    Contents:(see below)
  -->
</fo:instream-foreign-object>

该对象有一个来自于非 XSL 命名空间的子类。它也可能包含非 XSL 命名空间的额外属性。

属性

属性 [A-J]属性 [K-Z]
alignment-adjustkeep-with-next
alignment-baselinekeep-with-previous
azimuthlanguage
background-attachmentleft
background-colorline-height
background-imagemargin-bottom
background-repeatmargin-left
background-position-horizontalmargin-right
background-position-verticalmargin-top
baseline-shiftoverflow
block-progression-dimensionpadding-after
border-after-colorpadding-before
border-after-stylepadding-bottom
border-after-widthpadding-end
border-before-colorpadding-left
border-before-stylepadding-right
border-before-widthpadding-start
border-bottom-colorpadding-top
border-bottom-stylepause-after
border-bottom-widthpause-before
border-end-colorpitch
border-end-stylepitch-range
border-end-widthplay-during
border-left-colorrelative-position
border-left-stylerichness
border-left-widthright
border-right-colorrole
border-right-stylescaling
border-right-widthscaling-method
border-start-colorscript
border-start-stylesource-document
border-start-widthspace-end
border-top-colorspace-start
border-top-stylespeak
border-top-widthspeak-header
bottomspeak-numeral
clipspeak-punctuation
content-heightspeech-rate
content-typestress
content-widthtext-align
countrytext-indent
cue-aftertop
cue-beforevoice-family
display-alignvolume
dominant-baselinewidth
elevation 
height 
id 
inline-progression-dimension 

XSL-FO 参考手册