MATLAB: Where is the XSL stylesheet that matlab uses when it publishes code to HTML

htmlpublishstylesheetxsl

Does anyone know which file matlab uses for the XSL stylesheet when a script is published?
I know I can select my own stylesheet on the publish dialogue but that removes all the default styles. Ideally I'd like to add to the default stylesheet instead of recreating the whole thing.

Best Answer

Found it
%MATLAB ROOT%\toolbox\matlab\codetools\private\mxdom2simplehtml.xsl
You can copy this, then edit to create a custom look for your published code.