Skip to main content

 PSML

A complete reference of PageSeeder's markup language PSML

<properties-fragment>

Summary

The <properties-fragment> element is a fragment which only contains <property> elements.

Other kind of fragment elements are as follows:

See How to create a properties fragment tutorial.

Usage context

Element categorystructure
PSML levelportable
Permitted content<property>
Permitted parent<section>
HTML equivalentno equivalent
OpenXML equivalent

Attributes

This element includes the following attributes:

NameTypeRequiredDescription
idfragment-idyesThe fragment ID
typefragment-typenoThe template type
labelslabel-listnoA list of fragment label values

@id

The fragment ID, which must be unique within the document.

@type

The type of properties fragment, which might reflect the type of template.

Examples

An example:

<properties-fragment id="3">
  <property name="part-id" value="FY765A"/>
  <property name="part-category" value="Industrial"/>
</properties-fragment>

A more comprehensive example:

<properties-fragment id="4" >
  <property name="title"
            title="Title"
            value="Alice's Adventures in Wonderland"/>
 
<property  name="isbn" title="ISBN" value="0000000000001"/>
  <property  name="author" title="Author" value="Lewis Caroll"/>
  <property name="language" title="Language">
    <value>English</value>
    <value>Spanish</value>
  </property>
  <property name="country" title="Country" value="Australia"/>
  <property name="available-date"
            datatype="date"
            title="Available date"
            value="2012-01-01"/>

  <property name="related"
            count="n"
            datatype="xref"
            title="Related">
    <xref href="book4.psml" frag="default"/>
    <xref href="book7.psml" frag="default"/>
  </property>
</properties-fragment>

Schema

XML Schema

<xs:element name="properties-fragment">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="property"
                  minOccurs="0"
                  maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="id" type="fragment-id" use="required"/>
    <xs:attribute name="type" type="fragment-type"/>
    <xs:attribute name="labels" type="label-list"/>
  </xs:complexType>
</xs:element>

Relax Schema

element properties-fragment {
   attribute id { fragment-id },
   attribute type { fragment-type }?,
   attribute labels { label-list }?, 
   element property*
}

Compatibility

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

Created on , last edited on