Jailed Catalan leader wanted permission to be freed to attend Catalan parliamentarysession at which he was expected to be voted in as President.