Garth Nix's Abhorsen trilogy is one of these, and Susannah Clarke's Jonathan Strange and Mr Norrell is the queen of them all, and probably my favourite fantasy book.His Dark Materials is a book of the third point, though it has elements of the first and second points too.