Appendix A - Dictionary Definition Documents

 

Element Definition Document

The XML syntax given below is used to define an element in the dictionary collection.

<xflaim:element
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the element"

    xflaim:DictNumber="element number"
    xflaim:targetNameSpace="namespace of the element"
    xflaim:type="string, integer, binary, or nodata"
    xflaim:State="checking, unused, purge, or active"
    xflaim:UniqueSubElements="yes, true, on, 1, enable or no, false, off, 0, disable"
/>


Explanation:

Example:

<xflaim:element xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema" xflaim:name="age" xflaim:type="integer" />


Attribute Definition Document

The XML syntax given below is used to define an attribute in the dictionary collection.

<xflaim:attribute
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the attribute"
    xflaim:DictNumber="attribute number"
    xflaim:targetNameSpace="namespace of the attribute"
    xflaim:type="string, integer, or binary"
    xflaim:State="checking, unused, purge, or active"
/>

Explanation:

Example:

<xflaim:attribute xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema" xflaim:name="color" xflaim:type="string"/>


Collection Definition Document

The XML syntax given below is used to define a collection in the dictionary collection.

<xflaim:Collection
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the collection"
    xflaim:DictNumber="collection number"
/>

Explanation

Example

<xflaim:Collection xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema" xflaim:name="Sales" />


Prefix Definition Document

The XML syntax given below is used to define a namespace prefix in the dictionary collection.

<xflaim:Prefix
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the prefix"
    xflaim:DictNumber="prefix number"
/>

Explanation

Example

<xflaim:Prefix xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema" xflaim:name="alpha" />


Encryption Definition Document

The XML syntax given below is used to define a namespace prefix in the dictionary collection.

<xflaim:EncDef
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the encryption definition scheme"
    xflaim:DictNumber="encryption definition number"

    xflaim:type="aes or des3"

    xflaim:keySize="256, 192, 168, or 128"
/>

Explanation

Example

<xflaim:EncDef xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema" xflaim:name="aes256" xflaim:type="aes" xflaim:keySize="256" />


Index Definition Document

The XML syntax given below is used to define an index in the dictionary collection.

<xflaim:Index
    xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
    xflaim:name="name of the index"
    xflaim:DictNumber="index number"
    xflaim:CollectionName="name of collection to be indexed"
    xflaim:CollectionNumber="number of collection to be indexed"
    xflaim:Language="collation language of the index"
    xflaim:IndexOptions="abspos">

    <xflaim:ElementComponent
        xflaim:name="element name of element component"
        xflaim:targetNameSpace="namespace of element component (only used if element name given)"
        xflaim:DictNumber="element number of element component"
        xflaim:KeyComponent="order of this component in the key (must be non-zero)"
        xflaim:DataComponent="order of this component in data part (must be non-zero)"
        xflaim:IndexOn="value, substring, eachword, metaphone, or presence"
        xflaim:Required="yes, true, on, 1, enable or no, false, off, 0, disable"
        xflaim:Limit="limit in bytes or characters for string or binary type"
        xflaim:CompareRules="comparison rules"
    > ...

   <xflaim:AttributeComponent
        xflaim:name="name of attribute to be indexed"
        xflaim:targetNameSpace="namespace of attribute (only used if attribute name given)"
        xflaim:DictNumber="attribute number of attribute to be indexed"
        xflaim:KeyComponent="order of this component in the key (must be non-zero)"
        xflaim:DataComponent="order of this component in data part (must be non-zero)"
        xflaim:IndexOn="value, substring, eachword, metaphone, or presence"
        xflaim:Required="yes, true, on, 1, enable or no, false, off, 0, disable"
        xflaim:Limit="limit in bytes or characters for string or binary type"
        xflaim:CompareRules="comparison rules"
    /> ...

</xflaim:Index>
 

Explanation

The <xflaim:Index> element.  This is the root element of an index definition document.  It may have the following attributes:

The <xflaim:ElementComponent> and <xflaim:AttributeComponent> elements.  These elements specify an element or attribute that is a component of the index.  An element component (xflaim:ElementComponent) may be a key component, a data component, a path component, or some combination of the three component types.  An attribute component (xflaim:AttributeComponent) may be a key component, data component, or both a key and data component.  A key component is used in generating an index key.  A data component is used to associate additional data with the index key.  A path component is one that must be in the hierarchy of components to get to another component.  Only xflaim:ElementComponent elements may be path components.  This means that they are allowed to have child elements that are either xflaim:ElementComponent elements or xflaim:AttributeComponent elements.  An xflaim:AttributeComponent is not allowed to have xflaim:ElementComponent or xflaim:AttributeComponent child elements, and hence cannot be a path component.

The hierarchy of xflaim:ElementComponent elements and xflaim:AttributeComponent elements within an index definition document specifies the relationship that must exist between the specified elements and/or attributes in a document in order for them to be used to build a key in an index.

The attributes of an xflaim:ElementComponent element or xflaim:AttributeComponent element are as follows:

Example

<xflaim:Index

xmlns:xflaim="http://www.novell.com/XMLDatabase/Schema"
xflaim:name="Title+Index+Offset"
xflaim:DictNumber="1">

<xflaim:ElementComponent
            xflaim:name="title"
            xflaim:KeyComponent="1"
            xflaim:IndexOn="value"/>

<xflaim:ElementComponent
            xflaim:name="track"
            xflaim:IndexOn="value">

<xflaim:AttributeComponent
            xflaim:name="index"
            xflaim:KeyComponent="2"
            xflaim:IndexOn="value"/>

<xflaim:AttributeComponent
            xflaim:name="offset"
            xflaim:KeyComponent="3"
            xflaim:IndexOn="value"/>

</xflaim:ElementComponent>

</xflaim:Index>