Translation5:10 9/ja

From IDMLWiki

Jump to: navigation, search

第10章 9節 / XMLエレメント

Contents

10.9 XMLエレメント

この節では、InDesignドキュメントのXML構造にあるXMLエレメントを、IDMLドキュメントとして記述する方法を説明します。

10.9.1 BackingStory.xml

IDMLパッケージのBackingStory.xmlファイルには、InDesignドキュメントに配置されていないXMLコンテンツが含まれています。

スキーマの例162 BackingStory
  1. BackingStory_File = element idPkg:BackingStory {
  2.   attribute DOMVersion { "7.0" },
  3. (
  4.   XmlStory_Object*
  5. )}

下記は、すべてのXMLコンテンツがドキュメント上に配置されているIDMLパッケージの<idpkg:BackingStory>エレメントの例です。(「10.4 ストーリー」のMappingStyleToTagsの例を参照)XML構造には、ルートエレメント<XMLElement>の子エレメントが1つあり、IDMLパッケージの<Story>エレメントとSelf属性ud8で関連付けられています。

IDMLの例93 BacingStory
  1. <idPkg: BackingStory xmlns:idPkg=" http://ns.adobe.com/AdobeInDesign/ idml/1.0/ packaging">
  2.   <XmlStory Self="u9c">
  3.     <ParagraphStyleRange AppliedParagraphStyle= "ParagraphStyle\ kNormalParagraphStyle">
  4.       <CharacterStyleRange AppliedCharacterStyle= "CharacterStyle\ k[No character style]">
  5.         <Content></Content>
  6.         <XMLElement Self="di2" MarkupTag=" XMLTag\cRoot">
  7.           <XMLElement Self="di2i3" MarkupTag=" XMLTag\cStory" XMLContent="ud8"/>
  8.         </XMLElement>
  9.       </CharacterStyleRange>
  10.     </ParagraphStyleRange>
  11.   </XmlStory>
  12. </idPkg: BackingStory>

10.9.2 XMLStory

<XMLStory>エレメントは、配置されていないXMLテキストコンテンツで、<Story>エレメントと同じく、ストーリーの参照です。<XMLStory>エレメントには<ParagraphStylerange>エレメント、<CharacterStyleRange>エレメント、<Table>エレメント、アンカー付きフレームおよび<Story>エレメントにあるすべてのエレメントが含まれます。

10.9.3 XMLElement

<XMLElement>エレメントは、InDesignドキュメントのXML構造のコンテンツです。テキストの<XMLElement>の例は、「10.4.9 テキストのXMLエレメント」を参照してください。ページオブジェクトを伴う<XMLElement>の例は、「XMLエレメントとページオブジェクトの結合」を参照してください。

スキーマの例163 XMLElement
  1. XMLElement_Object = element XMLElement {
  2.   attribute Self { xsd:string },
  3.   attribute MarkupTag { xsd:string }?,
  4.   attribute XMLContent { xsd:string }?,
  5.   attribute NoTextMarker { xsd:boolean }?,
  6. (
  7.   XMLAttribute_Object*&
  8.   XMLElement_Object*&
  9.   XMLComment_Object*&
  10.   XMLInstruction_Object*&
  11.   Table_Object*&
  12.   Footnote_Object*&
  13.   Note_Object*&
  14.   GaijiOwnedItemObject_Object*&
  15.   TextVariableInstance_Object*&
  16.   HyperlinkTextDestination_Object*&
  17.   Change_Object*&
  18.   HiddenText_Object*&
  19.   DTD_Object*&
  20.   Oval_Object*&
  21.   Rectangle_Object*&
  22.   GraphicLine_Object*&
  23.   Polygon_Object*&
  24.   Group_Object*&
  25.   TextFrame_Object*&
  26.   Button_Object*&
  27.   FormField_Object*&
  28.   MultiStateObject_Object*&
  29.   EPSText_Object*&
  30.   HyperlinkTextSource_Object*&
  31.   ParagraphStyleRange_Object*&
  32.   CharacterStyleRange_Object*&
  33.   Link_Object*&
  34.   element Content {text}*&
  35.   element Br {empty}*
  36. )
  37. }
表177 属性としてのXMLElementプロパティ
名前 必須 説明
MarkupTag string XMLエレメントの<XMLTag>への参照(Self属性)
XMLContent string XMLエレメントの<Story>への参照。(Self属性)ストーリーの最上位にあるXMLエレメントでのみ使用できる
NoTextMarker XMLNoTextMarker_EnumValue <Table>エレメントおよび<Cell>エレメントで使用。これらのエレメントには関連付けられたマーカーがレイアウトにない
スキーマの例164 XMLAttribute
  1. XMLAttribute_Object = element XMLAttribute {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute Value { xsd:string }
  5. }
表178 属性としてのXMLAttributeプロパティ
名前 必須 説明
Name string 属性名
Value string 属性値
スキーマの例165 XMLInstruction
  1. XMLInstruction_Object = element XMLInstruction {
  2.   attribute Self { xsd:string },
  3.   attribute Target { xsd:string },
  4.   attribute Data { xsd:string }?
  5. }
表179 属性としてのXMLInstructionプロパティ
名前 必須 説明
StoryOffset string <XMLInstruction>エレメントの位置。<CharacterStyleRange>エレメントのSelf属性を参照
Target string ターゲット
Data string コンテンツ
スキーマの例166 XMLComment
  1. XMLComment_Object = element XMLComment {
  2.   attribute Self { xsd:string },
  3.   attribute Value { xsd:string }?
  4. }
表180 属性としてのXMLCommentプロパティ
名前 必須 説明
StoryOffset string <XMLInstruction>エレメントの位置。<CharacterStyleRange>エレメントのSelf属性を参照
Value string コンテンツ
スキーマの例167 DTD
  1. DTD_Object = element DTD {
  2.   attribute Self { xsd:string },
  3.   element Properties {
  4.     element Contents {
  5.       (string_type, xsd:string ) |
  6.       (enum_type, SpecialCharacters_EnumValue ) |
  7.       (object_type, xsd:string )
  8.     }?
  9.   }
  10.   ?
  11. }
表181 属性としてのDTDプロパティ
名前 必須 説明
StoryOffset string <XMLInstruction>エレメントの位置。<CharacterStyleRange>エレメントのSelf属性を参照
表182 エレメントとしてのDTDプロパティ
名前 必須 説明
Contents stringまたはSpecialCharactersenumeration コンテンツ