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.

Editing Documents | 69Inside an <strong>XML</strong> Schema if an xs:import statement specifies only the namespace attribute, without the schemaLocationattribute, <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> will try to resolve the specified namespace URI through one of the <strong>XML</strong> catalogsconfigured in Preferences pages.The URN can be resolved to a local schema file with a catalog entry like:An <strong>XML</strong> Catalog file can be created quickly in <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> starting from the two <strong>XML</strong> Catalogdocument templates called OASIS <strong>XML</strong> Catalog 1.0 and OASIS <strong>XML</strong> Catalog 1.1 and available in the document templatesdialog.User preferences related to <strong>XML</strong> Catalogs can be configured from Window > Preferences ... > oXygen > <strong>XML</strong> ><strong>XML</strong> Catalog<strong>XML</strong> CatalogAn <strong>XML</strong> catalog helps the <strong>XML</strong> parser to check a document for errors if the schema or a part of the schema is notavailable, for example when an Internet connection is not available.Important:<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> <strong>XML</strong> Editor collects all the catalog files listed in the installed frameworks. Nomatter what the Document Type Association matches the edited file, all the catalog mappings are consideredwhen resolving external references.Important:The catalog files settings are available for all editing modes, not only for the <strong>Author</strong> mode.Formatting and Indenting Documents (Pretty Print)In structured markup languages, the whitespace between elements that is created using the Space bar, Tab or multipleline breaks is not recognized by the parsing tools. Often this means that when structured markup documents are opened,they are arranged as one long, unbroken line, that seems to be a single paragraph.While this is a perfectly acceptable practice, it makes editing difficult and increases the likelihood of errors beingintroduced. It also makes the identification of exact error positions difficult. Formatting and Indenting, also called PrettyPrint, enables such documents to be neatly arranged, in a manner that is consistent and promotes easier reading onscreen and in print output.Pretty print is in no way associated with the layout or formatting that will be used in the transformed document. Thislayout and formatting is supplied by the XSL stylesheet specified at the time of transformation.To change the indenting of the current selected text see the Indent selection action.For user preferences related to formatting and indenting like Detect indent on open and Indent on paste see thecorresponding Preferences panel.<strong>XML</strong> elements can be excepted from the reformatting performed by the pretty-print operation by including them in thePreserve space elements (XPath) list. That means that when the Format and Indent (pretty-print) action encounters inthe document an element with the name contained in this list, the whitespace is preserved inside that element. This isuseful when most of the elements must be reformatted with the exception of a few ones which are listed here.For the situation when whitespace should be preserved in most elements with the exception of a few elements, the namesof these elements must be added to the Strip space elements (XPath) list.In addition to simple element names, both the Preserve space elements (XPath) list and the Strip space elements (XPath)one accept a restricted set of XPath expressions to cover a pattern of <strong>XML</strong> elements with only one expression. Theallowed types of expressions are:

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

Saved successfully!

Ooh no, something went wrong!