6. (1) The Minister or any person acting under his authority may attach temporarily to any armed force of Sri Lanka any member of a visiting force who is placed at his disposal for the purpose by the service authorities of the territory to which that visiting force belongs.
(2) Subject to anything to the contrary in the conditions applicable to the service of any member of any armed force of Sri Lanka, the President may place that member at the disposal of the service authorities of the territory to which a visiting force belongs for the purpose of being attached temporarily by those authorities to that visiting force.
(3) Whilst a member of a visiting force is by virtue of this section attached temporarily to any armed force of Sri Lanka, he shall be subject to the law relating to the appropriate armed force of Sri Lanka, in like manner as if he were a member of that armed force, and shall be treated and have the like powers of command and punishment over members of that armed force of Sri Lanka to which he is attached as if he were a member of that force of relative rank :
Provided, however, that the Minister may direct that, in relation to members of any visiting force who are so attached, the law relating to the armed forces of Sri Lanka
shall apply with such exceptions and subject to such adaptations and modifications as may be specified by the Minister.
(4) When any armed force of Sri Lanka and a visiting force are serving together, whether alone or not- *Attachment of personnel with mutual powers of command.* (a) every member of the visiting force shall be treated and shall have over members of that armed force of Sri Lanka the like powers of command as if he were a member of that armed force of Sri Lanka of relative rank; and
(b) if the forces are acting in combination, any officer of the visiting force appointed by the P r e s i d e n t to command the combined force or any part thereof, shall be treated and shall have over members of that armed force of Sri Lanka the like powers of command and punishment, and may be invested with like authority to convene, and to confirm the findings and sentences of, courts martial as if he were an officer of that armed force of Sri Lanka of relative rank and holding the same command.
(5) For the purposes of this section, forces shall be deemed to be serving together or acting in. combination if, and only if, they are declared to be so serving or so acting by order of the President, and the relative rank of members of that armed force of Sri Lanka and of the visiting forces shall be such as may be prescribed by regulations made under section 10.