German prosecutors say they have brought charges against one of the two main suspects in last year's failed train bombings in Cologne, Germany.

The prosecutors said Wednesday they have charged a Lebanese national, 22-year-old Youssef Mohammed el-Hajdib, with an unspecified number of counts of attempted murder.

They accuse him and an accomplice, Jihad Hamad, of trying to blow up two commuter trains traveling to Dortmund and Koblenz on July 31, 2006. Their homemade bombs failed to explode.

Prosecutors say the two planned the attack as retaliation for a Danish newspaper's publication of caricatures of the Prophet Mohammed.

Last August, Lebanese authorities arrested Hamad in Lebanon, and shortly after, German police located Hajdib after a massive police search. Lebanon has three other suspects in custody.

Authorities say video-surveillance cameras showed the two holding suitcases, later found to contain gasoline, butane gas and a timer.

Some information for this report was provided by AP and AFP.