Skip to main content

 Element reference

PSML elements from <author> to <xref>

<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.

The only attributes used by the upload are the following:

  • @id
  • @type

An existing publication ID/type is only overwritten if “overwrite properties” is selected under the Developer options on Upload.

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

See Publications and publication types for more details.

Usage context

Element category
PSML levelportable
Permitted contentnone
Permitted parent<documentinfo>
HTML equivalent
OpenXML 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.

Created on , last edited on