A pledge by Pakistan and Afghanistan to work together to fight militants could build trust between the uneasy US allies, but differences in security strategies could undermine their efforts, analysts said. In a rare show of solidarity, Afghan President Hamid Karzai attended the inauguration of Pakistan's new president, Asif Ali Zardari, on Tuesday after his predecessor, Pervez Musharraf, a staunch US ally, was forced to resign last month. Speaking at a news conference, both leaders later stressed their intention to work together against the militant threat. Relations between the neighbors have been severely strained in recent years by Afghan and US complaints that militants are operating out of sanctuaries in northwest Pakistan's ethnic Pashtun lands along the Afghan border. Pakistan says it is doing all it can to stop cross-border movement by militants. But it plays down the importance of the sanctuaries, saying the Afghan war is largely an Afghan problem. “Both governments are threatened by Al-Qaeda and the Taleban. They say they want to cooperate. Now the question is how much they cooperate and how much they can address Karzai's complaints,” analyst Hasan Askari Rizvi said on Wednesday. The United States, apparently frustrated with growing cross-border attacks into Afghanistan, has stepped up its strikes on militants in Pakistan, infuriating Pakistanis many of whom are deeply opposed to the US campaign against militancy. Like Musharraf, Zardari is also seen as close to the United States. But Zardari as an elected civilian leader, will have to pay heed to the sentiments of the Pakistani people or risk his party's rejection in the next parliamentary elections. Karzai, who is expected to seek a new term next year, wants the fight taken to the militant sanctuaries, meaning northwest Pakistan, rather than foreign forces inflicting ever greater civilian casualties inside Afghanistan. More strikes in Pakistan, with seemingly inevitable civilian casualties, will turn up the domestic heat on Zardari. “If such attacks continue, then there will be more collateral damage and there will be more frustration and alienation among the people,” said former Pakistani ambassador to Afghanistan, Rustam Shah Mohmand. Pakistani Foreign Minister Shah Mehmood Qureshi told Dawn Television late on Tuesday the two countries planned to bring tribal elders from both sides for a traditional council, or jirga, to ponder the problems.