China's national legislature on Monday overwhelmingly approved a law authorizing a military attack to stop Taiwan from pursuing formal independence, a day after President Hu Jintao told the 2.5 million-member People's Liberation Army to be prepared for war. The measure was approved by a vote of 2,896 to zero, with two abstentions on the last day of the National People's Congress' annual session. "We shall step up preparations for possible military struggle and enhance our capabilities to cope with crises, safeguard peace, prevent wars and win the wars if any," the official Xinhua News Agency quoted Hu as saying Sunday. Hu's comments, made to military delegates at the national legislature, appeared aimed at underlining Beijing's determination to unify with democratically ruled Taiwan, which split from the Chinese mainland in 1949. Delegates to the NPC burst into applause after the approval of the law, shown live on national television. "This law ... represents the people's determination not to allow Taiwan to be separated from China by any means or any excuses," said Wu Bangguo, China's No. 2 leader and chairman of the parliament.