Add a column to your cart to identify taxable and non-taxable items... call it Taxable and give it a value of 0 or 1.
Then create a calculation TotalTaxable = [TotalPrice] * [Taxable]
Then create your tax rule based on TotalTaxable instead of the subtotal.