Complex sentence: The first charter for the royal town of Jaca is attributed to him, that will set the example of an ideal community (included well defined laws of protection even to non residents) for later urban rights until late in the Middle Ages.
Split into simpler sentences: The first charter for the royal town of Jaca is attributed to him. It included well defined laws of protection even to non residents, and would set an example for urban rights until late in the Middle Ages.