Page 1 of 1

Is there a way to suppress CSS element?

Posted: Tue May 13, 2014 11:48 pm
by scotmarvin
I'm trying to generate a clean, simplified HTML output. I need to suppress any <link> element to a CSS. Ideally, I'd like to suppress any metadata too.

Is there anyway to do this? There doesn't seem to be.



Re: Is there a way to suppress CSS element?

Posted: Thu May 15, 2014 11:45 am
by Radu
Hi Scott,

Oxygen uses the DITA Open Toolkit open source engine to generate various output formats from DITA content.
There is no special setting for this, you will need to modify the XSLT stylesheets used to produce the XHTML output.

This XSLT stylesheet:


is responsible for generating the meta tags in the XHTML output.

The link to the common CSS document is generated in the XSL:


So you could either modify these stylesheets or create your custom post-processing step to purify the resulted XHTML documents.

You should also consider registering on the Yahoo DITA Users List because it is a very good place where to ask output customization questions: