PSML

A complete reference of PageSeeder's markup language PSML

<publication>

Summary

The <publication> element is only used on the root document of a publication and can be used to create a publication when uploading documents.

Note

The only attributes used by the upload are:

  • @id
  • @type

An existing publication ID/type will only be overwritten if overwrite properties is ticked under the Developer options on Upload.

If the uploaded publication ID is already used by another document, overwrite properties is ticked and the user has contributor access to the other document then the publication ID will be moved to the uploaded document.

Introduced in v1.0 of the PSML schema in PageSeeder v5.97.

Usage context

Element category
PSML levelportable
Permitted contentnone
Permitted parent<documentinfo>
HTML equivalent
OpenXML equivalent
PSStandard equivalent

Attributes

This element includes the following attributes

NameTypeRequiredDescription
defaultgroupidxs:longnoThe ID of the publication's default group
hostidxs:longnoThe ID of the publication's host
idpublication-idyesThe ID of the publication
rooturiidxs:longnoThe URI ID of the publication's root document
titlexs:stringnoThe title of the publication's root document
typepublication-typenoThe publication type

@defaultgroupid

The ID of the publication's default group. INFORMATIONAL - ignored by upload.

@hostid

The ID of the publication's host. INFORMATIONAL - ignored by upload.

@id

The user defined ID of the publication - it can only contain letters, numbers, underscore and hyphen.

@rooturiid

The URI ID of the publication's root document. INFORMATIONAL - ignored by upload.

@title

The title of the publication's root document. INFORMATIONAL - ignored by upload.

@type

The publication type - it can only contain letters, numbers and underscores.

Examples

<publication id="mypub1" type="report" />

Schema

XML Schema

  <xs:element name="publication">
    <xs:complexType>
      <xs:attribute name="id" type="publication-id" use="required"/>
      <xs:attribute name="type" type="publication-type"/>
      <xs:attribute name="hostid" type="xs:long"/>
      <xs:attribute name="rooturiid" type="xs:long"/>
      <xs:attribute name="title" type="xs:string"/>
      <xs:attribute name="defaultgroupid" type="xs:long"/>
    </xs:complexType>
  </xs:element>

Compatibility

This element was introduced in the v1.0 of PSML and is supported from PageSeeder 5.97.

See also

Created on , last edited on