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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Author</strong>ing in the Visual Editor | 78<strong>Author</strong>ing <strong>XML</strong> Documents Without the <strong>XML</strong> TagsOnce the structure of the <strong>XML</strong> document and the required restrictions on the elements and attributes are fixed with an<strong>XML</strong> schema the editing of the document is easier in a WYSIWYG (what-you-see-is-what-you-get) editor in which the<strong>XML</strong> markup is not visible.This tagless editor is available as the <strong>Author</strong> mode of the <strong>XML</strong> editor. The <strong>Author</strong> mode is activated by pressing the<strong>Author</strong> button at the bottom of the editing area where the mode switches of the <strong>XML</strong> editor are available: Text, Grid,and <strong>Author</strong>. The <strong>Author</strong> mode renders the content of the <strong>XML</strong> document visually based on a CSS stylesheet associatedwith the document. Many of the actions and features available in Text mode are also available in <strong>Author</strong> mode.Figure 37: <strong>Author</strong> editing modeThe tagless rendering of the <strong>XML</strong> document in the <strong>Author</strong> mode is driven by a CSS stylesheet which conforms to theversion 2.1 of the CSS specification from the W3C consortium. Also some CSS 3 features like namespaces and customextensions of the CSS specification are supported.The CSS specification is convenient for driving the tagless rendering of <strong>XML</strong> documents as it is an open standardmaintained by the W3C consortium. A stylesheet conforming to this specification is easy to develop and edit in <strong>Oxygen</strong><strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> as it is a plain text file with a simple syntax.The association of such a stylesheet with an <strong>XML</strong> document is also straightforward: an xml-stylesheet <strong>XML</strong>processing instruction with the attribute type="text/css" must be inserted at the beginning of the <strong>XML</strong> document.If it is an XHTML document, that is the root element is an html element, there is a second method for the associationof a CSS stylesheet: an element link with the href and type attributes in the head child element of the htmlelement as specified in the CSS specification.There are two main types of users of the <strong>Author</strong> mode: framework developers and content authors. A framework developeris a technical person with advanced <strong>XML</strong> knowledge who defines the framework for authoring <strong>XML</strong> documents in thetagless editor. Once the framework is created or edited by the developer, it is distributed as a deliverable componentready to plug into the application to the content authors. A content author does not need to have advanced knowledgeabout <strong>XML</strong> tags or operations like validation of <strong>XML</strong> documents or applying an XPath expression to an <strong>XML</strong> document.The author just plugs the framework set-up by the developer into the application and starts editing the content of <strong>XML</strong>documents without editing the <strong>XML</strong> tags directly.

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

Saved successfully!

Ooh no, something went wrong!