yes thank Clanad.
This is exactly right motartube Hydrogen as a fuel is only as green as the method used to obtain the electricity to produce it.
Pretty much the problem with all the renewables is it sounds great unti you do the maths and then you tend to find that you have to cover half the country with windfarms to make up for the days when there's little wind and the sea's flat..
Which is why I say I think you'll probably find we still need some nuclear in 50 years or so.
However there is some interesting work going on with bacteria that can be made to produce hydrogen - if we can genetically modify them to get a good rate of production they could be a real runner
Have a look here if you're interested
http://www.fao.org/docrep/w7241e/w7241e0g.htm
or here for one with more pictures and less technical detail
http://www.energycooperation.org/bioproduction H2.htm