YAGSbook is an XML format specifically designed for the mark up of roleplaying game content. It was originally based on DocBook which does much the same for technical documentation. A YAGSbook document can support multiple types of game systems (allowing d20 and GURPS content to be included side by side for example) and potentially rendered to multiple output formats - currently only PDF is fully supported. Support for HTML is pretty much deprecated.
The purpose of YAGSbook is that document content can be structured in such a way that accessing and manipulating it becomes easy. If a set of rules is written in Microsoft Office, then a chapter listing skills is just a sequence of text, possibly with some fancy headings. It is very difficult to do anything useful with that text - for example pull out a list of skills sorted by group, or filtered according to genre. With YAGSbook this becomes possible.
The best example of YAGSbook output is probably the rules for YAGS itself. This can be downloaded at https://yags-rpg.net/.
The source for YAGSbook can be found at Gitlab