Versions Compared

Key

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

Inserting a field is the common way to get data from the XML source into the document. To insert a field you can either just drag and drop the data element you would like to show from the data source window or position the cursor where you want to place the field and select Insert->Field. Again, you will be asked for an XPath expression. It is important to note the Context that is printed at the top of the window, as the XPath expression you create will be relative to this.

Image Removed
In this example you are in context of a room, e.g. you have created a section or repeating table for each room. You can then navigate to the attribute you want by e.g. expanding core and double click on the room_func_no attribute to get the room number. This will construct the following expression:フィールドの挿入は、XMLソースからドキュメントにデータを取り込む一般的な方法です。フィールドを挿入するには、データ・ソース・ウィンドウから表示したいデータ要素を、
ドラッグ・アンド・ドロップするか、フィールドを配置したい場所にカーソルを置き、挿入 (Insert)→フィールド (Field)を選択します。ここでもXPath式の入力を求められます。
作成するXPath式はこれに対する相対的なものになるため、ウィンドウの上部に表示されるContext (コンテキスト)に注意することが重要です。

Image Added
この例では、各部屋のセクションや 繰り返しテーブルを作成しています。次に、例えばコアを展開し、部屋番号を取得するためにroom_func_no属性をダブルクリックして、
必要な属性に移動することができます。これにより、以下の式が構成されます:

core/@room_func_no