24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

tr, header{display:table-row;}<strong>Author</strong> Developer Guide | 229header{background-color: silver;color:inherit}td{display:table-cell;border:1px solid navy;padding:1em;}Because in the schema the td tag has the attributes row_span and column_span that are not automatically recognizedby <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong>, a Java extension will be implemented which will provide information about the cell spanning.See the section Configuring a Table Cell Span Provider.Because the column widths are specified by the attributes width of the elements customcol that are not automaticallyrecognized by <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong>, it is necessary to implement a Java extension which will provide information aboutthe column widths. See the section Configuring a Table Column Width Provider.Sample project referenceNote: The complete source code can be found in the Simple Documentation Framework project, included inthe <strong>Oxygen</strong> <strong>Author</strong> SDK zip available for download on the <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> website.Note: The complete source code of thero.sync.ecss.extensions.commons.DefaultElementLocatorProvider,ro.sync.ecss.extensions.commons.IDElementLocator orro.sync.ecss.extensions.commons.XPointerElementLocator can be found in the <strong>Oxygen</strong>Default Frameworks project, included in the <strong>Oxygen</strong> <strong>Author</strong> SDK zip available for download on the <strong>Oxygen</strong><strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> website.Note: The Javadoc documentation of the <strong>Author</strong> API used in the example files is available on the <strong>Oxygen</strong> <strong>XML</strong>website. Also it can be downloaded as a zip archive from the website.Customizing the Default CSS of a Document TypeThe easiest way of customizing the default CSS stylesheet of a document type is to create a new CSS stylesheet in thesame folder as the customized one, import the customized CSS stylesheet and set the new stylesheet as the default CSSof the document type. For example let us customize the default CSS for DITA documents by changing the backgroundcolor of the task and topic elements to red.1. First you create a new CSS stylesheet called my_dita.css in the folder ${frameworks}/dita/css_classedwhere the default stylesheet called dita.css is located. ${frameworks} is the subfolder frameworks of the<strong>Oxygen</strong> <strong>XML</strong> Editor. The new stylesheet my_dita.css contains:@import "dita.css";task, topic{background-color:red;}2. To set the new stylesheet as the default CSS stylesheet for DITA documents first open the Document Type Associationpreferences panel from menu Options > Preferences > Document Type Association. Select the DITA documenttype and start editing it by pressing the Edit button. In the <strong>Author</strong> tab of the document type edit dialog change the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!