Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Filename:


ファイル名:

RDS - cafeteria sample, 2-column with images.xfd

Levelレベル:

Medium

XML from report:レポートから XML:

Rooms -> Room Data Sheet → With pictures

XML sample file:XMLサンプルファイル:

xml/rds-cafeteria-sample.xml

Key conceptsキーコンセプト:

Layout in two columns. Positioning and including images.


This report is created by first creating a page layout of A3, defining two column layouts in the body region and setting the orientation to landscape.
Then, using building blocks, add room core information and RDS data. By default the RDS data would flow directly below the room core. In order to make the RDS data always start in column 2 you have to select the block-repeat element for the RDS in the navigation bar and in the properties set Keeps & Breaks → Break Before to column.
See section on how to insert images from xml. I used the position of the image to define what image was the detail image and what was the key plan image. In the source path for the image I therefore modified it to:このレポートは、まずA3のページレイアウトを作成し、本文の領域に2つの列 (column)のレイアウトを設定し、向きを横向きに設定して作成されます。
次に、ビルディング・ブロックを使用して、部屋のコア情報と RDS データを追加します。デフォルトでは、RDSデータは、部屋のコアの真下にフロー(流れ)します。
 RDSのデータを常に2列目から開始させるには、ナビゲーションバーでRDSのブロックリピート(block-repeat )要素を選択し、
プロパティでKeeps & Breaks (キープと区切り)→ Break Before to column (列の前に区切り)を設定する必要があります。
xmlから画像を挿入する方法のセクションを参照してください。
画像の位置を利用して、どの画像が詳細画像で、どの画像がキープラン画像かを決めました。そのため、画像のソースパスを次のように変更しています:

pictures/picture[@position='1']/@image_data

To get image 2 (key plan) we just change position='2'. By default the images would overflow if they are too big, so we need to control this by setting a max size and placement as described in the images section.
The key plan: After adding the image. Right click on it and select "Absolute positioning". I can then drag it to the bottom left corner of the report.
The room core building block needs an index over all the room ref nodes so the following xpath expression has been added in the Review->Global XSLT window:画像2 (キープラン) を取得するには、position='2'を変更するだけです。
デフォルトでは、画像が大きすぎると容量オーバーになってしまうので、画像セクションで説明したように、最大サイズと配置を設定して制御することが必要です。
キープラン:画像を追加した後。それを右クリックして "Absolute positioning (絶対位置)" を選択します". その後、レポートの左下隅にドラッグできます。
部屋コアのビルディングブロックは、すべての部屋参照ノードのインデックスを必要とするので、
以下のxpath式が、Review (レビュー)->Global XSLT window (Global XSLTウィンドウ) に追加されました:

<xsl:key match="room" name="room-ref-index" use="@ref"/> 

...