PSML

A complete reference of PageSeeder's markup language PSML

<compareto>

Summary

The version this document is being compared to. Only appears when comparing documents e.g. using the Ant task:

<ps:export ... compareto="1.0"/>

Contains the title, description and labels of the document for this version.

INFORMATIONAL - ignored by upload.

Usage context

Element category
PSML levelprocessed
Permitted content<title> <description> <labels> <metadata> <structure>
Permitted parent<documentinfo>
HTML equivalentno equivalent
OpenXML equivalentno equivalent
PSStandard equivalent

Attributes

This element includes the following attributes

NameTypeRequiredDescription
datexs:dateTimenoThe creation date of the version.
versionxs:stringnoThe name of the version or "Original".
dociddocument-idnoThe document ID of the version

@date

The creation date of the version in ISO 8601 date time format.

@version

The name of the version. If that version corresponds to the original document, then this value is "Original"

@docid

The document ID of the version.

Examples

<compareto version="1.0" date="2013-04-23T11:18:10+10:00">
  <title>Old title</title>
  <description>Old description</description>
  <labels>oldlabel1,oldlabel2</labels>
</compareto>

Schema

XML Schema

<xs:element name="compareto">
   <xs:complexType>
      <xs:all>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="description" type="xs:string" minOccurs="0"/>
         <xs:element ref="labels" minOccurs="0"/>
         <xs:element ref="metadata" minOccurs="0"/>
         <xs:element ref="structure" minOccurs="0"/> 
      </xs:all>
      <xs:attribute name="version" type="xs:string"/>
      <xs:attribute name="date" type="xs:dateTime"/>
    </xs:complexType>
  </xs:element>

Relax Schema

element compareto {
   attribute version { text}?,
   attribute date { xs:dateTime }?,
   element title { text }?,
   element description { text }?,
   element labels?,
   element metadata?,
   element structure?
}

Compatibility

This element was introduced in PSML Beta 7 and is only supported from PageSeeder 5.6.

See also

Created on , last edited on