How can I apply Linear gradient and drop shadow to this pattern?
Try the following:
Place all the gradient and pattern definitions within a block. After the defs block is closed place your visible content tags.