Oh i forgot to mention purlins are best placed 24 inches on center to fit with the most common insulation width and insulation between purlins should be unfaced.
Rigid foam under metal roof on purlins.
As far as i know standing seam metal roofing can t be installed on rigid foam.
The best material for use with metal roof insulation is in the form of foam batting.
It has to be installed on plywood osb or possibly purlins.
First nail 1x2s to the rafter sides up against the roof strapping.
It is possible to insulate from below as you suggest with rigid polystyrene insulation.
The solution i have in mind is to cut 2 foot wide strips of 1 2 thick foil poly faced eps to fit between the purlins 1 2 below the metal roofing.
I would seal the eps against the purlins with a high grade permanently flexible caulk or spray foam insulation.
In this insulation approach rigid foam insulation board is used to achieve the sought after energy performance.
Insulating with spray foam insulation.
Further insulation may be added by the use of high r foam boards placed beneath the purlins.
However code requires them to be covered with a fire barrier on the inhabited side.
Cut each sheet to the desired size using a utility knife then fasten it in place using staples or adhesive.
Commonly these use metal deck panels over the roof structure thus supporting the insulation and a vapor retardant material on top of the deck.
Rigid board composite systems.
If you want to be sure talk to your roofer or the manufacturer of the roofing panels.
Use rigid foam insulation to cover wider spans of roof sheathing between joists.
This will provide an air space above the foam insulation to improve ventilation on the underside of the metal roofing.
Avoids nails or screws which could penetrate the metal roof and cause leaks.
This foam can be used on either the outside or the inside of the sheathing.
There are two ways to do this put in firring nailing though nails are not used any more for this strips or purlins in steel frame construction on the roof to support it or place the metal roofing directly on a flat surface like foam insulation board or the roof sheathing with roof water barrier in the correct position in the layer.
The rigid board material costs roughly 23 cents per square foot.