Tamino XML Server Version 9.7
 —  Tamino XML Schema Reference Guide  —

tsd:computed

Purpose

This element specifies the definition of a computed index for a doctype.

Parent element tsd:index
Child elements tsd:collation
Attributes name, type, function
Type xs:complexType
Attributes
Name Type Description
name xs:NCName A name that must be unique among all computed indexes for this doctype.
type xs:QName A simple type that is predefined in XML Schema.
function xs:QName The QName of an XQuery function that is defined in an XQuery module.

Example

This example shows ???the use of the tsd:compress element to set compression to "always":???

.
.
.
<tsd:doctype name="bib">
  <tsd:physical>
    <tsd:index>
      <tsd:standard>
        <tsd:computed name='compIndex-1' 
                      function='p:getTitleLowerCase' 
                      type='xs:string' 
                      xmlns:p='http://example.computedIndex.org'/>
      </tsd:standard>
      <tsd:standard>
        <tsd:computed name='compIndex-2' 
                      function='p:getAuthorFullName' 
                      type='xs:string' 
                      xmlns:p='http://example.computedIndex.org'/>
      </tsd:standard>
      <tsd:standard>
        <tsd:computed name='compIndex-3' 
                      function='p:getAuthorsTotalNameLength' 
                      type='xs:int' 
                      xmlns:p='http://example.computedIndex.org'/>
      </tsd:standard>
    </tsd:index>
  </tsd:physical>
</tsd:doctype>
.
.
.

Top of page