Is there a way to suppress CSS element?

scotmarvin
Posts: 18
Joined: Thu Aug 27, 2009 5:09 pm

Is there a way to suppress CSS element?

Post 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.

Thanks,

Scot
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Is there a way to suppress CSS element?

Post 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:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\xsl\xslhtml\get-meta.xsl

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

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

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\xsl\xslhtml\dita2htmlImpl.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:

https://groups.yahoo.com/neo/groups/dita-users/info

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply