G.11 Majority
Prev | Appendix G. Core selectors | Next

## G.11 Majority

The `<majority>` tag selects files provided that a majority of the contained elements also select it. Ties are dealt with as specified by the `allowtie` attribute.

    <fileset dir="${src}" includes="**/*.php">
      <majority>
        <contains text="project" casesensitive="false"/>
        <contains text="taskdef" casesensitive="false"/>
        <contains text="BaseSelector" casesensitive="true"/>
      </majority>
    </fileset>

Table G.10: Attributes for the `<majority>` selector container

Name | Description | Default | Required
--- | --- | --- | ---
`allowtie` | Whether files should be selected if there are an even number of selectors selecting them as are not selecting them. | `true` | No

Prev | Up | Next
G.10 And | Home | G.12 None