pdf: use apply-templates instead of value-of for texts