biz-StreamマニュアルXMLドキュメントレイアウトタグ リファレンス第4章 ページ設定について4.6 領域コンテナ<bs:block-container>

4.6 領域コンテナ<bs:block-container>


4.6.1機能説明

リージョンの領域に対してページレイアウトを表示するための領域を設定します。



4.6.2属性説明

1bs:block-container属性説明

領域内にページレイアウトを配置します。

属性名指定説明指定内容初期値
x任意親要素内のX座標CDATA0
y任意親要素内のY座標CDATA0
unit任意単位(Choice)mm / cm / in / px / ptmm
master-reference 必須外部データの参照CDATA
  • ページレイアウトの<flow-area>または<hflow-area>にもmaster-referenceを設定している場合は、それぞれがユニークとなるように設定してください。複数のページレイアウトをインポートする場合、全てのレイアウトでmaster-referenceがユニークになっている必要があります。

2bs:include属性説明

リージョンと関連付けをするページレイアウトを指定します。

属性名指定説明指定内容初期値
name任意名前CDATA
x任意<bs:block-container>内のX座標CDATA0
y任意<bs:block-container>内のY座標CDATA0
unit任意単位(Choice)mm / cm / in / px / ptmm
href必須参照するページレイアウト名CDATA


4.6.3記述例

page-sequenceサンプル2

page-sequenceサンプル2
(『<biz-Stream_home>/sample/xml/layout-master-set/layout-master-setSample2.xml』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:pdf="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:bs="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" version="5.0.0">
    <bs:document-properties-set>
        <bs:document-view initial-page="1" page-size="fit-in-window" disposition="two-column-left" menubar="true" toolbar="true" window-ui="true" thumbnail="false" full-screen="false" fit-window="false" center-window="false"/>

        <bs:document-security128 master-password="YnNhZG1pbg== " accessibility="not-allowed" content-copying="not-allowed" printing="not-allowed" changing="not-allowed">
        </bs:document-security128>
    </bs:document-properties-set>
    <bs:datasource-master-set>
    </bs:datasource-master-set>
    <fo:layout-master-set>
        <fo:simple-page-master master-name="A4V" page-height="297mm" page-width="210mm">
            <fo:region-body/>
            <fo:region-before extent="50mm"/>
            <fo:region-after extent="50mm"/>
            <fo:region-start extent="40mm"/>
            <fo:region-end extent="40mm"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="A4V" bs:local-page-control="none">
        <bs:page-javascript-set>
            <bs:page-javascript name="open" action="page-open">app.alert("page-open");</bs:page-javascript>
            <bs:page-javascript name="clone" action="page-close">app.alert("page-close");</bs:page-javascript>
        </bs:page-javascript-set>
        <fo:static-content flow-name="xsl-region-end">
            <bs:block-container>
                <bs:include href="${base-dir}/sample/xml/layout-master-set/layout-master-setSample-end.xml"/>

            </bs:block-container>
        </fo:static-content>
        <fo:static-content flow-name="xsl-region-start">
            <bs:block-container>
                <bs:include href="${base-dir}/sample/xml/layout-master-set/layout-master-setSample-start.xml"/>

            </bs:block-container>
        </fo:static-content>
        <fo:static-content flow-name="xsl-region-after">
            <bs:block-container>
                <bs:include href="${base-dir}/sample/xml/layout-master-set/layout-master-setSample-after.xml"/>

            </bs:block-container>
        </fo:static-content>
        <fo:static-content flow-name="xsl-region-before">
            <bs:block-container>
                <bs:include href="${base-dir}/sample/xml/layout-master-set/layout-master-setSample-before.xml"/>

            </bs:block-container>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
            <bs:block-container>
                <bs:include href="${base-dir}/sample/xml/layout-master-set/layout-master-setSample-body.xml"/>

            </bs:block-container>
        </fo:flow>
    </fo:page-sequence>
</fo:root>