Medieval works (legends, chronicles) create his fictional world. The ideal ruler and saint it is in unity.
The means by which this world shows are literary in nature.