Custom HTML output from comments

Hi,
How difficult would it be to take the comment from a .docx file and use that comment as a class or id on the nearest HTML element? Looking through the old source code it looked like it was possible to add a custom XSLT stylesheet (which would make my task very simple, I think anyway), but that method seems to have been deprecated. Thank you for your time...
How difficult would it be to take the comment from a .docx file and use that comment as a class or id on the nearest HTML element? Looking through the old source code it looked like it was possible to add a custom XSLT stylesheet (which would make my task very simple, I think anyway), but that method seems to have been deprecated. Thank you for your time...