Is there a way to suppress CSS element?

scotmarvin
Posts: 18

Is there a way to suppress CSS element?

Tue May 13, 2014 11:48 pm

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

Re: Is there a way to suppress CSS element?

Thu May 15, 2014 11:45 am

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

Return to “XHTML”

Who is online

Users browsing this forum: No registered users and 0 guests