By the Court,
This is an appeal from an order of the circuit court of Rock county, made in this cause on the application of the respondent, requiring the appellant to give security for costs in the action by a written undertaking in the sum of five hundred dollars, and staying all proceedings on the part of the appellant until such security was filed and approved by the court; and further directing that the cause be referred to William H. Pettit to take all the testimony to be taken in this state, which either party might desire to use on the trial of the same. It is admitted that this order was entered under and pursuant to sections one and ten of chapter 88, Laws of 1861.
On the argument of this and other cases on the calendar, involving the same question, a preliminary objection was taken, that such an order under our statute was not ap-pealable, and therefore that this court could not review it. But in answer to this objection it is claimed that such an order is appealable on several grounds. It is claimed that it is appealable under the first clause of section 10, chapter 264, Laws of 1860, as being an order which affects a substantial right, by determining the action and preventing a judgment from which an appeal might be taken. We do not think the order is appealable under this clause of the statute. It can hardly be said that this order in effect determines the action and prevents a j udgment, although it would likely tend greatly to protract the litigation and embarrass the appellant in obtaining judgment. Now the order which affects *23a substantial right under this clause, is one which determines the action; the words “ substantial right” being qualified and restricted by the subsequent language in the same clause. The order in this case clearly does not determine the action, since it is not impossible for the parties to proceed and take all the testimony, and finally to have a trial and adjudication of the court upon the merits. Consequently it cannot be maintained that this order affects a substantial right and determines the action, and hence it does not come within the class of orders referred to in the first subdivision of section 10, chapter 264.
But it was further claimed that the order was appealable under the fourth clause or subdivision of that section. This makes an order appealable “ when it involves the merits of an action or some part thereof,” &c. Can this order, which refers the cause to a person to take and report to the court all the testimony which either party may desire to give in the action or use on the trial, be said to involve the merits of the action or any part of it? We think it does.
It must be admitted that the language here used to determine the appealability of an order, is succeptible of different interpretations. The order, to be appealable, must involve the merits of an action or some part of it. In placing a com struction upon this provision of the statute, of course much will depend upon the force and meaning given to the word ‘‘ merits” as here used. Justice Selden, of New York, in construing the corresponding provision of the Code of that state, in St. John et al. vs. West et al., 4 How. Prac. R., 329, thought the word “ merits,” as here used, should be understood as meaning the strict legal rights of the parties as con-tradistinguished from mere questions of practice which every court regulates for itself, and from all matters which depend upon the discretion or favor of the court. The order appealed from in that ease was one denying an application to substitute certain parties as plaintiffs in place of the original plaintiff, who had deceased since the commencement of the suit. The judge held that the statute gave the personal representatives or successors in interest the right of continuing the suit upon coming in within a year of the death of *24the original plaintiff, and that an appeal would lie from an order denying an application made for the single purpose of enforcing this right. The appeal however was dismissed on other grounds. In Cram vs. Bradford, 4 Abbotts’ Pr. R., 198, it was held that an order which directed a reference in a case in which a reference was not authorized by law, was an appealable order; and that a court could not be said to have the power to grant or refuse.a statutory right at its discretion. In Green vs. Wood, 6 Abbotts’ Pr. R., 277, it was held that the examination of a party before trial as provided by the Code, was a matter of strict right, if claimed by the adverse party, and an order refusing such examination was appealable.' In La Farge vs. The La Farge Ins. Co., 14 How. Pr. R., 26, Justice Boswoeth decided that an order refusing an attachment against a witness disobeying a subpoena requiring him to produce documentary evidence material to the party subpoenaing him, and which it was his duty to produce, was an appealable order. A party, he said, has a right to have the remedies provided by law, to secure the attendance of material and necessary witnesses, or the production of material and necessary evidence, enforced in his behalf, when he has been vigilant and done all which is in-, cumbent on him to do to obtain such attendance, and an order which, without fault or laches on his part, prevents the remedies being made effectual,’necessarily involves the merits and affects a substantial right.
In the case of Rahn vs. Gunnison, 12 Wis., 528, we had occasion to consider what the legislature intended by the language, “ an order which involves the merits of an action or some part thereof” That was an appeal from an order refusing to set aside a summons and complaint for irregularity. The particular irregularity complained of was, that the summons, which on its face showed that it was issued in a suit in the county court of Milwaukee county, was attested in the name of the judge of the circuit court. We held the order not appealable for the reason that it was impossible to say that the mere matter of having a summons properly attested involved the merits of an action. A summons, we thought, was, in-the nature of a notice from the plaintiff to *25the defendant of the commencement of a suit, and related merely to the form or proceeding of bringing a party into court, and therefore, whether properly attested or not, could not in any way involve the merits of the litigation. In this latter case Mr. Justice Paine criticises some of the views expressed by Mr. Justice Selden in St John vs. West upon the proper meaning and import of the word “ merits,” and thinks the definition given by him too comprehensive. His idea is that the term “ merits,” as used in this statute, relates to matters of substance in the law, *as distinguished from mere matters of form which do not affect the subject matter of the litigation. But even within this construction of the provision of the statute, it is clear that the order in the present case is appealable. Eor in the case of Brown vs. Runals, 14 Wis., 693, it was distinctly held that each party to a suit in equity, was, under our constitution, entitled to have his witnesses examined in open court, subject only to the occasional exceptions provided for in cases at law. The order in this case attempts to deprive the parties of this constitutional right, by referring the cause to a person to take all the testimony out of court which either party might desire to use on the trial. And if this order is to become operati ve, if it is to have any force and effect whatever, then is it not clear that in these particular cases the parties cannot have their witnesses examined in open court, however much they may desire it? Although the constitution, as interpreted by this court, secures to a party the right to have his witnesses examined before the court which tries the cause, still this order attempts to deprive him of this right and requires that all the evidence be taken out of court. If an order of this character does not involve the merits of the action, it is difficult to perceive'what order would. Suppose in a common law action the court should deny parties litigant the right of producing their witnesses in open court, and of examining them on the trial in the presence of the jury, but should require the cause to be tried on depositions ; would any one contend that such an order would not affect the very merits and subject matter of the litigation? If not, would an order by which a court should attempt to delegate its powers, *26°1°^® a private citizen with its jurisdiction to try a cause, be an order involving the merits of the action ? ¥e apprehend these suggestions hardly require an answer. The “merits” of an action do not relate to the moral and abstract rights of the case, without reference to the constitution of judicial tribunals, or their mode of investigating facts, or their well established rules of practice. Of course there are many things in the proceedings of courts of justice which are mere matters of form, not in any way affecting any substantial right, nor touching the real merits of the controversy. But we can hardly say that a right secured to a suitor by the constitution is an immaterial matter, to be regarded or not as the courts may think proper. And certainly if an order referring a case when it was not authorized by law to be referred, or discharging an order for the examination of a party before trial, or refusing an attachment for a witness who has been duly subpoenaed, and refuses to attend, can, with any propriety of language,be said to be an order which involves the merits of an action, then with much stronger reason can it be said that an order which attempts to deprive a party of his constitutional right to have his witnesses examined in open court, is one involving the merits of the action. Such an order comes within the most rigid and technical construction which is admissible, of this provision of the statute. This view of the appealability of the order is further strengthened by the consideration that a party must be to the expense of attending before the person appointed to take the testimony — must pay witness fees — and further must pay all the charges of the person appointed to take the testimony, unless they are waived, before the evidence is reported to the court for trial of the cause. Section 17, chap. 88, Laws of 1861.
But assuming the order to be appealable, then it is insisted that the appellant has sustained no injury from it; that it interferes with none of his rights; and therefore that his objection to it is premature. The case of Noonan vs. Orton, 5 Wis., 60, is relied on in support of this position. The cases are clearly distinguishable from each other. In Noonan vs. Orton, by the terms of the order, either party might *27take his testimony before the commissioners, upon notice to the adverse party, at any time within three months from its date. The order was permissive, not compulsory, in its character. Here the order is peremptory and absolute. It requires all the testimony to be taken by the commissioner, or examiner, which either party may desire to use on the trial. It cannot be said that the order is mere brutum fulmen, which a party may disregard and proceed with his suit. For by the 14th section of the act under which the order was made, it is provided that no action shall be tried until all the testimony shall have been taken and reportéd to the court. For these reasons it is obvious that the decision in Noonan vs. Orton does not apply to this case.
Our objections to this order, however, rest upon higher and broader grounds than the mere language of the order. We are of the opinion that chapter 88, Laws of 1861, is in direct conflict with the constitution.
I have already indicated one objection to this law, viz: that it requires the testimony in these mortgage foreclosure cases to be taken out of court, while by the constitution a party has the right to have his witnesses examined in court, subject to the occasional exceptions provided for in cases at law. In Brown vs. Runals we have expressed our views upon the constitutional provision requiring testimony in equity cases to be taken in like manner as in actions at law, and nothing farther need be said here upon that subject. The language of the constitution is clear, positive and explicit, and cannot be disregarded. Another objection to this law is, that it impairs the obligation of contracts, within the meaning and restriction of the constitution of the Hnited States and of this state. I do not propose to enter upon a discussion of the question as to how far the legislature may go in changing the remedy upon past contracts without impairing the obligation. That whole field of discussion has been very fully gone over in the opinions of the Chief Justice and Mr. Justice Paine in the recent case of Von Baumbach vs. Bade, 9 Wis., 559, and I am content to rest the discussion there. The conclusion at which the Chief Justice arrived in that case, and in which I concurred, was “ that it *28jg within the power of the legislature to repeal, change, or modify the laws governing the proceedings in courts of justice, as well as to past as future contracts, so that the parties have a substantial remedy, according to the course of justice as it existed at the time the contract was made.” Applying this rule to the enactment under consideration, its invalidity becomes apparent. For without entering into a minute analysis of the law, it is plain to be seen that it does not leave to the holder of this class of securities “ a substantial remedy according to the course of justice as it existed at the time these contracts were made.” On the contrary, it is difficult to perceive how any candid person, capable of reading the law and comprehending its provisions, can fail to see upon its very face an intention to clog, hamper and embarrass the proceedings to enforce the remedy, so as to destroy it entirely, and thus impair the contract so far as it is in the power of the legislature to do it. Without stopping to draw the line between the remedies which may, and those which may not be taken away, probably no one would contend, in view of the provision in our Bill of Rights, which declares that “ every person is entitled to a certain remedy in the laws for all injuries or wrongs which he may receive in his person, property or character,” that an act taking away all remedies for enforcing contracts would be a valid enactment. Equally objectionable is a law which burdens the remedy with such restrictions as to make it useless or not worth pursuing. That such is the character of this law, is evident on the least examination. All of its provisions disclose an intention on the part of the legislature, so to interpose obstacles and delays in the way.of foreclosing this class of mortgages, as to leave the creditor without any substantial remedy. We furthermore think other very serious objections exist to this law, but we do not deem it necessary to notice them. Those which we have already referred to, are sufficient to invalidate the law and render it inoperative and void.
That part of the law relating to the giving of security for costs might be proper enough, if it stood by itself, or could be separated from the unconstitutional provisions. All the important provisions of the law we are constrained to declare *29invalid, and as section 10 was clearly intended to come in aid of these provisions, and to stand or fall with them, must likewise hold it inoperative and void.
It follows from these views that the order of the circuit court must be reversed, and the cause remanded for further proceedings according to law.