Pakistan & India have fought 2 wars over Kashmir & numerous skirmishes since the beginning; we claim Kashmir & control (37%) of it on the basis that it was a Muslim Majority area & should have gone to Pakistan in '47 & because many Kashmiris, in '47, wanted to join Pakistan. India claims & controls (43%) of Kashmir on the basis that the Ruler of Kashmir choose to join India instead, though this is disputed & Kashmir is hence an integral part of India.
Neither us nor them are willing to compromise on any 'territory' that we control.
The Pakistani President General Pervaiz Musharaf came up with a compromise solution in the early to mid 2000s to make the borders that divide Pakistani administered Kashmir & Indian administered Kashmir, as irrelevant; with free movement from Kashmiris on both side to each other's lands, trade, pulling back the troops from those areas & allowing self-rule to either of those Kashmiris to manage their own affairs as they see it fit without any interference from Pakistan or India but without changing the 'de-jure' status of Our Kashmir being Pakistani territory & their Kashmir remaining Indian territory.
Unfortunately this plan, though on the verge of agreement, couldn't take root due to domestic political problems in Pakistan.
Do you think such a compromise solution could be achieved between Azerbaijan & Armenia with respect to the disputed region ?