Scottish government challenges gender reform block - BBC News
The Scottish and UK governments are in court over Holyrood plans to make it easier for people to change legal gender.
What is the role of the lord advocate?

The court has now paused for lunch. Dorothy Bain KC will continue her argument at 14:00. Until then, let's take a look at her role as the lord advocate. The office of lord advocate dates back to the 1400s, and after 1707 was the chief legal advisor to the UK government on Scottish legal matters. After devolution, the lord advocate became legal advisor to the Scottish government, while a new office of Advocate General for Scotland was set up to advise the Crown and UK ministers on matters of Scots law. The lord advocate tends to represent the Scottish government in big court cases, with other recent examples including the various legislative disputes over Brexit and the powers of the Scottish Parliament. As well as advising ministers on legal wrangles and legislative plans, the lord advocate can take part in the weekly meetings of the first minister's cabinet. They can also sit on the government benches at Holyrood and make statements to MSPs or answer questions on behalf of ministers. The lord advocate is also the head of Scotland's independent prosecution service, the Crown Office and Procurator Fiscal Service.
• What are the roles of Scotland's lord advocate?