Skip to main content

 API

PageSeeder Web services API documentation

<document-fragment>

Summary

This is the container element for a PSML document’s fragment and its metadata.

Usage context

Permitted content<locator>, <fragment>, <media-fragment>, <properties-fragment>, <xref-fragment>
Permitted parent

Attributes

No attributes.

Examples

<document-fragment>
  <locator id="325" fragment="4"/>
  <fragment id="4">
    <para>This is the fragment content</para>
  </fragment>
</document-fragment>

Schema

XML Schema

<xs:element name="document-fragment">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="locator"/>
      <xs:choice>
        <xs:choice minOccurs="0" maxOccurs="1">
          <xs:element ref="fragment"            minOccurs="0" />
          <xs:element ref="media-fragment"      minOccurs="0" />
          <xs:element ref="xref-fragment"       minOccurs="0" />
          <xs:element ref="properties-fragment" minOccurs="0" />
        </xs:choice>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="draft" type="xs:boolean" fixed="true" />
   </xs:complexType>
</xs:element>

Relax Schema

element document-fragment {
  attribute draft      { xs:boolean }?,
  element locator,
  (fragment | media-fragment| xref-fragment | properties-fragment)?
}

Compatibility

No change since initial API release.

Created on , last edited on