This is an older paper published by UC Davis. It gets pretty in depth about the benifits and pitfalls of using a fuel cell as an idling alternative on class 8 trucks.
Evaluation of Fuel Cell Auxiliary Power Units for Heavy-Duty Diesel Trucks
The future of auxiliary power for trucks really is looking good.
If you want to see the basics about how a fuel cell works, click here.