CANADA STOCKS-TSX rises slightly as energy gains offset mining losses