[XSLT] Refactorization in transforms codes, xhtml, latex, and pdf, for reutilization in documentation