Start of Content Area

Background documentation Document Type Definition for Properties and Metadata

<!--  ______________________________________________________________

Author: SAP AG

Description: Format definition for metadata schemes for metadata import

into CM.

 

Changes:

___________________________________________________________________

-->

     

<!-- Definition of a metadata Scheme consists of a section, where properties are

defined, which are in the default group and a section, where properties for different

groups are defined -->

<!ELEMENT metaDataScheme (

   namespaceList,

   groupList,

   metadataExtensionList,

   propertyRendererList,

   propertyList) >

  

<!ATTLIST metaDataScheme

   version (V1.0)  #REQUIRED  >

  

<!ELEMENT namespaceList (namespace*) >

 

<!ELEMENT namespace EMPTY >

<!ATTLIST namespace

   alias CDATA #REQUIRED

   namespace CDATA #REQUIRED  >

 

<!ELEMENT groupList (group*) >

 

<!ELEMENT group EMPTY >

<!ATTLIST group

   name CDATA #REQUIRED

   hidden (true | false) "false"

   position CDATA #IMPLIED

   bundlekey CDATA #IMPLIED

   bundlefile CDATA #IMPLIED  >

 

<!ELEMENT metadataExtensionList (metadataExtension*) >

<!ELEMENT metadataExtension EMPTY >

<!ATTLIST metadataExtension

   name CDATA #REQUIRED

   bundlefile CDATA #IMPLIED

   dynamic_values.class CDATA #IMPLIED

   validation.class CDATA #IMPLIED

   selection_command CDATA #IMPLIED

   description  CDATA #IMPLIED  >

 

<!ELEMENT propertyRendererList (propertyRenderer*) >

<!ELEMENT propertyRenderer EMPTY >

<!ATTLIST propertyRenderer

   name CDATA #REQUIRED

   class CDATA #REQUIRED

   displaymodes  CDATA #REQUIRED

   description CDATA #IMPLIED  >

  

<!-- List of properties, defined for the default group -->

<!ELEMENT propertyList (property*) >

 

<!-- Definition of a property. There are two sections, one for required and one for optional

settings -->

<!ELEMENT property EMPTY >

 

<!-- Definitions of required and optional property entries. You find more details about the

entries in the SAP Enterprise Portal Administration Guide in the description of the Property

Metadata Service  -->

 

<!ATTLIST property

   unique_id CDATA #REQUIRED

   property_id CDATA #REQUIRED

   namespace_alias CDATA #REQUIRED

   type (Boolean | Date | HTML | Integer | RID | String | Text | Time | Timestamp | User | URL | XML) #REQUIRED

   group CDATA #REQUIRED >

 

<!-- Definitions of simple optional property entries with default values. You find more details about the

entries in the SAP Enterprise Portal Administration Guide in the description of the Property

Metadata Service  -->

 

<!ATTLIST property

   sortmode (Ascending | Descending) "Ascending"

      multi_valued (true | false) "false"

   hidden (true | false) "false"

   indexable (true | false) "false"

   maintainable (true | false) "true"

   mandatory (true | false) "false"

   readonly (true | false) "false"

   virtual (true | false) "false"

   dependencies (true | false) "false" >

 

<!-- Definitions of optional complex property entries. You find more details about the

entries in the SAP Enterprise Portal Administration Guide in the description of the Property

Metadata Service. The default value and the allowed values have to match the property type, i.e. if property type is

- boolean: The default value has to be true or false

- date: The default value has to be according to DD:MM:YYYY

- time: The default value has to be according to hh:mm:ss

- timestamp: The default value has to be according to DD:MM:YYYY:hh:mm:ss

 

composed_of has to be a comma seperated list of unique ids of properties, which

have to be already defined or are defined in this XML file before the actual property.

 

For the following attributes the referenced items has to be already defined:

metadata_extension, renderer

 

The following attribute are not checked for validity: keyForLabel, labelIcon, comparator_class

 

-->

<!ATTLIST property

   allowedValues CDATA #IMPLIED

   default_value CDATA #IMPLIED

   keyForLabel CDATA #IMPLIED

   labelIcon CDATA #IMPLIED

   additionalMetadata CDATA #IMPLIED

   document_patterns CDATA #IMPLIED

   folder_patterns CDATA #IMPLIED

   mime_types CDATA #IMPLIED

   resource_types CDATA #IMPLIED

      composed_of CDATA #IMPLIED

   metadata_extension CDATA #IMPLIED

   renderer CDATA #IMPLIED

   comparator_class CDATA #IMPLIED

      description CDATA #IMPLIED >

 

 

 

End of Content Area