I would add a column to the cart called "Taxable"
Then set its value to either 0 or 1 if it is taxable.
Then create a calculation:
TotalTaxable = [TotalPrice] * [Taxable]
Then you can create a tax charge based on the total of that calculated column.