doc: generate a valid xml tree

This patch makes sure that the <emphasis> tags used in the resources
generator are embeded in a <paragraph>.

This change makes it easier to convert from docutils XML to docbook by
providing a valid XML tree.

Change-Id: Icd48d8cc6d868f484de895a07bd696e951884109
Merge "doc: generate a valid xml tree"