28. (1) If the justice of the peace be satisfied by evidence on oath that any person within Québec, likely to give material evidence either for the prosecution or for the defence, will not attend to give evidence without being compelled so to do, then instead of issuing a summons, he may issue a warrant for such person in the first instance.
(2) If such person is confined in a house of detention, the justice of the peace may issue a warrant ordering the sheriff or the director general of the reception centre, as the case may be, to bring such person to enforce his appearance before him or before any other justice of the peace, at the time and at the place indicated, to give evidence.
(3) Sections 22 and 23 shall apply to the execution of such warrant.