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.

Important:<strong>Author</strong> Developer Guide | 191If the document refers a schema, using for instance a DOCTYPE declaration or a xsi:schemaLocationattribute, the schema from the document type association will not be used when validating.Schema TypeSchema URISelect from the combo box the value <strong>XML</strong> Schema.Enter the value ${frameworks}/sdf/schema/sdf.xsd. We should use the${frameworks} editor variable in the schema URI path instead of a full path in order to bevalid for different <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> installations.Important:The ${frameworks} variable is expanded at the validation time into the absolutelocation of the directory containing the frameworks.Second Step - The CSSIf you read the Simple Customization Tutorial then you already have some basic notions about creating simple styles.The example document contains elements from different namespaces, so you will use CSS Level 3 extensions supportedby the <strong>Author</strong> layout engine to associate specific properties with that element.Defining the General LayoutNow the basic layout of the rendered documents is created.Elements that are stacked one on top of the other are: book, article, section, title, figure, table, image.These elements are marked as having block style for display. Elements that are placed one after the other in a flowingsequence are: b, i. These will have inline display./* Vertical flow */book,section,para,title,image,ref {display:block;}/* Horizontal flow */b,i {display:inline;}Important:Having block display children in an inline display parent, makes <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> <strong>Author</strong>change the style of the parent to block display.Styling the section ElementThe title of any section must be bold and smaller than the title of the parent section. To create this effect a sequence ofCSS rules must be created. The * operator matches any element, it can be used to match titles having progressive depthsin the document.title{font-size: 2.4em;font-weight:bold;}* * title{

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

Saved successfully!

Ooh no, something went wrong!