I have never seen Black 5 in any joseki book, but I'm sure I've seen it in my games. Probably a typical amateur mistake :) However, I have no idea why it would be bad - it looks like a reasonable move to me, given the right circumstances.
I will first comment on the sequence you gave, then I will show which alternatives I would consider, and finally I'll show a few sequences I made up. Forgive me for not including diagrams, instead please have a look at the eidogo diagram here.
In your sequence I see 3 problems:
15 (B14) is a minor mistake and should be at B18 in sente to prevent white B18 in sente and give black better shape (F18 is a potentially damaging point after w exchanged B18 for D18).
11 (C17) is a mistake and should be at C13 to jump out and save the 2 stones. Now white has poor shape because of the vital points at B18 and C18 and the very strong black shape at E16. White will probably get a miserable small corner life and black a very thick outside, so the 2 white stones at D15 cannot be moved out without becoming heavy, they should be considered lost.
8 (D17) is a mistake. It forces black to become very solid and leaves an annoying cut at C16. It makes the situation difficult for white.
Since 8 looks like the first mistake, what else could w play? I would consider 3 options: C17, E16, or B16. Let's look at those three.
After C17, black can either continue pressing or jump out to deal with the corner later. If black presses, white will try to capture the 2 black stones, which can be quite tricky. It should end either ko or good for black. Either way black will get the top side and white the left.
If black instead jumps out at C13, black will gain corner and left, white top thickness. Quite good for w in comparison.
If white wants to force the top result, or if she feels fighty, she may also play E16 directly. After D17 E17, black should probably play the tesuji C18, white atari, black connect, white hane F15 for good shape. Again black sente, corner and left, white top thickness.
Black might also play E15 after E17, which looks really complicated. I guess it will depend on the players' reading skills what happens next, I won't dare to try and analyze this mess.
Finally, white might also just descend at B16. If black jumps out, white will probably play E16 atari and we end up with a similar shape as before.
However, black should probably play B17 tesuji, forcing C17 D17 and either B18 or C18. Either way white is concealed in the corner and not alive yet, so black should have the advantage in the following fight.
Black may consider C14 instead of B15. That move is way above my level to comment on, but I'm sure you can see that it can lead to a complicated mess (not the first one we have seen today).
The unusual move 5 seems possible. Result depends on the board and the fighting skills of the players, both black and white can chose between several routes to follow.