<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.
Introduced in v1.0 of the PSML schema in PageSeeder v5.97.
Usage context
Element category | |
---|---|
PSML level | portable |
Permitted content | none |
Permitted parent | <documentinfo> |
HTML equivalent | |
OpenXML equivalent |
Attributes
This element includes the following attributes:
Name | Type | Required | Description |
---|---|---|---|
defaultgroupid | xs:long | no | The ID of the publication’s default group |
hostid | xs:long | no | The ID of the publication’s host |
id | publication-id | yes | The ID of the publication |
rooturiid | xs:long | no | The URI ID of the publication’s root document |
title | xs:string | no | The title of the publication’s root document |
type | publication-type | no | The 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
Publications and publication types