What is the difference between wholegrain and wholemeal?

As defined by the food standards code:
‘wholegrain means the intact grain or the dehulled, ground, milled, cracked or flaked grain where the constituents – endosperm, germ and bran – are present in such proportions that represent the typical ratio of those fractions occurring in the whole cereal, and includes wholemeal.’
wholemeal means the product containing all the milled constituents of the grain in such proportions that it represents the typical ratio of those fractions occurring in the whole cereal.’