Interestingly and strangely enough, jail can only be used for contempt of court when they believe that keeping you there has a chance of making you comply. If you make a principled enough stand that you are never going to comply, they legally have to let you out. In practice, this usually takes a long time.