PSML

A complete reference of PageSeeder's markup language PSML

<documentinfo>

Summary

Metadata at the document level.

This element is a wrapper for information about the underlying document URI, reverse cross-references and document versions.

For metadata at the fragment level see <fragmentinfo>.

Usage context

Element categorymetadata
PSML levelmetadata
Permitted content<uri> <compareto> <versions> <reversexrefs>
Permitted parent<document>
HTML equivalent<head> 
OpenXML equivalent
PSStandard equivalent<ps:documentinfo>

Attributes

This element does not have any attribute.

Examples

A simple document without any reverse reference or version will have the following document info:

<documentinfo>
  <uri> ... </uri>
</documentinfo>

Schema

XML Schema

<xs:element name="documentinfo">
  <xs:complexType>
    <xs:all>
      <xs:element ref="uri"/>
      <xs:element ref="compareto" minOccurs="0"/>
      <xs:element ref="versions" minOccurs="0"/>
      <xs:element ref="reversexrefs" minOccurs="0"/>
    </xs:all>
  </xs:complexType>
</xs:element>

Relax Schema

element documentinfo {
   element uri,
   element compareto?,
   element versions?,
   element reversexrefs?
}

Compatibility

This element was introduced in the first draft of PSML and is well supported from PageSeeder 5.1.

PS Standard XML

This element is very similar to the <ps:documentinfo> element from PS Standard XML. The main change is that all metadata element now belong to the same namespace - so the "http://www.pageseeder.com/editing/2.0" namespace is no longer used for metadata element.

The edit flag which was present on the <ps:documentinfo> has been moved to the <document> element in PSML.

See also

Created on , last edited on