Show All

# aggregation Attribute

Specifies how the nodes returned from an XPath expression in the node attribute should be aggregated to obtain a single value for the document.

## Type

    xsd:simpleType

## Remarks

The aggregation attribute is an optional attribute of the field element.

The aggregation attribute can either be an aggregation action or an indication of the particular element in the collection. It uses the following aggregation actions: sum, count, average, min, max, first, last, merge, and plaintext.

## Example

The following is an example of the aggregation attribute as it is used in the field element:

    <xsf:listProperties>
       <xsf:fields>
          <xsf:field
             type="xsd:date"
             name="TravelDate"
             columnName="TravelDate"
             required="yes"
             viewable="yes"
             node="TravelReport/Header/travelDate"
             aggregation="first"/>
       </xsf:fields>
    </xsf:listProperties>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp