<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<fd:form
  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
  xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
  <fd:widgets>

    <fd:action id="samp-action"><fd:label>Sample Action</fd:label></fd:action>

    <fd:aggregatefield id="samp-aggregatefield">
      <fd:label>Sample AggregateField</fd:label>
      <fd:widgets>
        <fd:field id="samp-aggregate-field-1" required="true"><fd:label>Sample Aggregate Field 1</fd:label></fd:field>
        <fd:field id="samp-aggregate-field-2" required="true"><fd:label>Sample Aggregate Field 2</fd:label></fd:field>
      </fd:widgets>
    </fd:aggregatefield>

    <fd:booleanfield id="samp-booleanfield"><fd:label>Sample BooleanField</fd:label></fd:booleanfield>

    <fd:class id="samp-class">
      <fd:label>Sample Class</fd:label>
      <fd:widgets>
        <fd:booleanfield id="samp-class-booleanfield"><fd:label>Sample Class BooleanField</fd:label></fd:booleanfield>
        <fd:field id="samp-class-field"><fd:label>Sample Class Field</fd:label></fd:field>
      </fd:widgets>
    </fd:class>

    <fd:field id="samp-field" required="true"><fd:label>Sample Field</fd:label></fd:field>

    <fd:new id="samp-class"/>

    <fd:output id="samp-output"><fd:label>Sample Output</fd:label></fd:output>

    <fd:repeater id="samp-repeater" initial-size="2">
      <fd:label>Sample Repeater</fd:label>
      <fd:widgets>
        <fd:field id="samp-repeater-field"><fd:label>Sample Repeater Field</fd:label></fd:field>
      </fd:widgets>
    </fd:repeater>

    <fd:row-action id="samp-row-action"><fd:label>Sample RowAction</fd:label></fd:row-action>

    <fd:struct id="samp-struct">
      <fd:label>Sample Struct</fd:label>
      <fd:widgets>
        <fd:booleanfield id="samp-struct-booleanfield"><fd:label>Sample Struct BooleanField</fd:label></fd:booleanfield>
        <fd:field id="samp-struct-field" required="true"><fd:label>Sample Struct Field</fd:label></fd:field>
      </fd:widgets>
    </fd:struct>

    <fd:submit id="samp-submit"><fd:label>Sample Submit</fd:label></fd:submit>

    <fd:union id="samp-union">
      <fd:label>Sample Union</fd:label>
      <fd:widgets>
        <fd:booleanfield id="samp-union-booleanfield"><fd:label>Sample Union BooleanField</fd:label></fd:booleanfield>
        <fd:field id="samp-union-field"><fd:label>Sample Union Field</fd:label></fd:field>
      </fd:widgets>
    </fd:union>

  </fd:widgets>
</fd:form>
