Nesting two different schemas within each other

Oxygen general issues.
pkong
Posts: 5
Joined: Fri Oct 11, 2013 12:12 am

Nesting two different schemas within each other

Post by pkong »

I have an XML file type where, within certain elements, the content is 100% DITA with tables, rich text, etc. Is there a way to apply author mode transforms on the DITA content and nest it within CSS transforms of the larger file?
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: Nesting two different schemas within each other

Post by Radu »

Hi,

How about in the CSS used to render the main XML document in the Author mode you import the CSS used for DITA? That CSS is located in:

OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
pkong
Posts: 5
Joined: Fri Oct 11, 2013 12:12 am

Re: Nesting two different schemas within each other

Post by pkong »

What is the correct syntax to import another .css? I've tried:
@import "c:/install_dir/..."; and oxygen gives the error: "unknown protocol: c"!
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: Nesting two different schemas within each other

Post by Radu »

Hi,

The reference can either be a relative reference like:

Code: Select all

@import "../../path/to/dita.css"
or an absolute URL reference like:

Code: Select all

@import "file:/c:/install_dir/..."
If you want you can copy the entire contents of the folder OXYGEN_INSTALL_DIR/frameworks/dita/css_classed near your CSS file and make a relative reference to the dita.css.

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