MADRID (Reuters) - A small Spanish tablet maker has won a patent infringement battle with Apple Inc in a rare victory against the U.S. company in its global defense of markets for its iPads, a court document showed on Wednesday.