<xs:attribute name="scope" default="root">
  <xs:annotation>
    <xs:documentation>indicates whether the targets to be joined include the entire element indicated (the entire subtree including its root), or just the children of the target (the branches of the subtree).</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:enumeration value="root">
        <xs:annotation>
          <xs:documentation>the rooted subtrees indicated by the target attribute are joined, each subtree become a child of the virtual element created by the join</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="branches">
        <xs:annotation>
          <xs:documentation>the children of the subtrees indicated by the target attribute become the children of the virtual element (i.e. the roots of the subtrees are discarded)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:attribute> |