*572i. taxation judgment to recover, *571It is contended by appellants that no legal judgment for costs was ever rendered against Petersen *572by the district court of Clinton county, and that in consequence thereof the costs of the trial in that court cannot be resorted to as a set-off or counterclaim to defeat a recovery by appellants in this action. The question is thus presented as to the necessity for a reference in the record entry to the matter of costs as a basis for taxation of the same by the clerk. That the amount of costs, as entered by the clerk in the judgment docket in his office, were actually incurred and made on the trial of said cause, is not questioned. That the provisions of the general chapter of the Code relating to costs, and the taxation thereof, govern in criminal as well as civil cases, is conceded. Section 8853 provides that costs shall be recovered by the successful against the losing party; and by section 8862 it is made the duty of the clerk to tax in favor of the party recovering costs the allowance' of his witness fees, the fees of officers, etc. These provisions of the statute are mandatory in character. No refusal to act in accordance therewith is allowable, and there can be no departure from the course plainly marked out by the statute. In a criminal case, there being but the simple issue of guilt or innocence on the part of the defendant, there is no authority even for an apportionment of the costs as between the state and the defendant. State v. Belle 92 Iowa, 258.
By section 288 of the Code the clerk is required to keep a book in his office containing the abstract of the judgments, the name of the parties, the date and amount of the judgment aud costs, and to be known as the “Judgment Docket.” That such a book was kept, and that the costs made in the Petersen case were entered therein in detail by the clerk of the district court, is not a subject of dispute. Whether such action on the part of the clerk constituted, in law, the rendition of a judgment against the defendant,. such as that the same could be enforced by execution, we are not called upon to determine in this *573case. Certain it is that, when judgment was pronounced and entered, the county became eo instanti entitled to recover from the defendant the amount of the costs made in the case, not as a part of the judgment fixing his punishment, but as a mere incident thereto, and by force of the statutory provisions to which we have called attention. We hold, therefore, that it is sufficient for the purposes of this case that the county held such'unpaid claim against said Petersen, and as of date of the judgment against him.
2. same: ascJStsTcouncounty. II. It is clear that, had this suit been brought by Petersen, there could hav.e been no recovery, in view of the counterclaim or set-off presented by the defendant county. The question we are called upon to determine, therefore, is whether the appellants may recover notwithstanding the fact that, under the circumstances presented, no recovery could have been had by Petersen. It is admitted that appellants were advised of all the facts connected with the proceedings in the district court. Now, it will be observed that the claim in favor of Petersen against the county arose under the order of this court made April II, 1900. The written assignment of such claim to appellants bears date April 26,1900. In the absence of any other facts, the case could at once he disposed of, under the provisions of section 3461 of the (lode, which provides that “the as-dgnment of a thing in action shall be without prejudice to any counterclaim, defense or cause of action, whether matured or not, if matured when pleaded, existing in favor of the defendant and against the assignor before-notice of the assignment.” The claim in favor of the county being in existence at the time the claim in favor of Petersen arose, the rights of the parties became fixed at once upon the latter claim coming into existence, and no^ assignment thereafter by either party could affect the rights of the other. But it is claimed that the right of appellants had its origin at the time of the making of the oral arrangement to which we have made *574reference, and that the written assignment was intended simply to effectuate the right acquired under such oraJ arrangement.
We do not think that the claim thus made has any merit. In the first place, the arrangement was not entered into until after the demand due the county had its origin, and, but for the appeal, might have been enforced. Id any event, however, it is manifest that an arrangement such as is contended for could have no other effect than ta create the simple relation of debtor and creditor, as money might thereafter be advanced from time to time for tha purpose of perfecting .and submitting the appeal. It seems to us that there is neither reason nor authority for saying that such an arrangement could have the effect oi an assignment of a claim or demand not yet in existence, and which must of necessity be dependent wholly’ upon a reversal or modification of the judgment appealed from, and a consequent taxation of the costs of the appeal, or some portion thereof, in favor of the appellants. Thera being no property rights then in esse, and there being nothing in the conditions present to warrant the expectation that any such right would accrue in the future, save the hope that reversible error or ground for modification might be found in the record of the court appealed from, we are clearly of the opinion that there is nothing upon which to base the claim that appellants acquired any tangible right in the sum of money afterwards awarded ta Petersen by the order of this court, by reason of the verbal understanding or agreement shown by the evidence. We think that whatever rights the appellants have must be held to date from the time of the written assignment.
Such being the case, it follows that the judgment of the court below was right, and it is aeeirmeb.