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>
<!--
Contents:(see below)
-->
</fo:instream-foreign-object>
該對象有一個來自於非 XSL 命名空間的子類。它也可能包含非 XSL 命名空間的額外屬性。
屬性
| 屬性 [A-J] | 屬性 [K-Z] |
|---|---|
| alignment-adjust | keep-with-next |
| alignment-baseline | keep-with-previous |
| azimuth | language |
| background-attachment | left |
| background-color | line-height |
| background-image | margin-bottom |
| background-repeat | margin-left |
| background-position-horizontal | margin-right |
| background-position-vertical | margin-top |
| baseline-shift | overflow |
| block-progression-dimension | padding-after |
| border-after-color | padding-before |
| border-after-style | padding-bottom |
| border-after-width | padding-end |
| border-before-color | padding-left |
| border-before-style | padding-right |
| border-before-width | padding-start |
| border-bottom-color | padding-top |
| border-bottom-style | pause-after |
| border-bottom-width | pause-before |
| border-end-color | pitch |
| border-end-style | pitch-range |
| border-end-width | play-during |
| border-left-color | relative-position |
| border-left-style | richness |
| border-left-width | right |
| border-right-color | role |
| border-right-style | scaling |
| border-right-width | scaling-method |
| border-start-color | script |
| border-start-style | source-document |
| border-start-width | space-end |
| border-top-color | space-start |
| border-top-style | speak |
| border-top-width | speak-header |
| bottom | speak-numeral |
| clip | speak-punctuation |
| content-height | speech-rate |
| content-type | stress |
| content-width | text-align |
| country | text-indent |
| cue-after | top |
| cue-before | voice-family |
| display-align | volume |
| dominant-baseline | width |
| elevation | |
| height | |
| id | |
| inline-progression-dimension |
XSL-FO 參考手冊
