From IDMLWiki
10.2.18 CrossReferenceFormat
InDesignドキュメントには相互参照の機能があります。相互参照は<BuildingBlock>エレメントで設定します。
スキーマの例27 CrossReferenceFormat
CrossReferenceFormat_Object = element CrossReferenceFormat{ attribute Self { xsd:string }, attribute Name { xsd:string }, attribute AppliedCharacterStyle{ xsd:string }?, element Properties { element Label { element KeyValuePair{ KeyValuePair_TypeDef }* }?
}
?
,
(
BuildingBlock_Object*
)
}
表38 属性としてのCrossReferenceFormatプロパティ
| 名前 |
値 |
必須 |
説明 |
| AppliedCharacterStyle |
string |
|
相互参照形式に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値) |
| Name |
string |
○ |
相互参照形式の名前 |
相互参照は、テキストとテキスト形式の組み合わせた「構築ブロック」で形成されます。(構築ブロックについての詳細は、InDesignのドキュメントを参照してください)<CrossReferenceFormat>エレメントは複数の<BuildingBlock>エレメントを含むことができます。
スキーマの例28 BuildingBlock
BuildingBlock_Object = element BuildingBlock{ attribute Self { xsd:string }, attribute BlockType{ BuildingBlockTypes_EnumValue }, attribute AppliedCharacterStyle{ xsd:string }?, attribute CustomText{ xsd:string }?, attribute AppliedDelimiter{ xsd:string }?, attribute IncludeDelimiter{ xsd:boolean }?}
表39 属性としてのBuildingBlockプロパティ
| 名前 |
値 |
必須 |
説明 |
| AppliedCharacterStyle |
string |
|
相互参照形式に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値) |
| AppliedDelimiter |
string |
|
構築ブロックの区切り符号 |
| BlockType |
BuildingBlockTypes_EnumValue |
|
構築ブロックの種類。CustomStringBuildingBlock、FileNameBuildingBlock、ChapterNumberBuildingBlock、PageNumberBuildingBlock、FullParagraphBuildingBlock、ParagraphNumberBuildingBlock、ParagraphTextBuildingBlockまたはBookmarkNameBuildingBlock |
| CustomText |
string |
|
構築ブロックのテキスト。BlockType属性がCustomStringBuildingBlockであるときのみ有効 |
| IncludeDelimiter |
boolean |
|
trueのとき、構築ブロックインスタンスに区切り符号を含む |
IDMLの例12 BuildingBlock
<BuildingBlock Self="u8bBuildingBlock1" BlockType="ParagraphNumberBuildingBlock"
AppliedCharacterStyle="n" CustomText="$ID/" AppliedDelimiter="$ID/" Include-
Delimiter="false"/>