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.

a link hereEditing Documents | 57The Validate Document action will return the following error:Unexpected element "link". The content of the parent element type must match"(calloutlist|glosslist|bibliolist|itemizedlist|orderedlist|segmentedlist|simplelist|variablelist|caution|important|note|tip|warning|literallayout|programlisting|programlistingco|screen|screenco|screenshot|synopsis|cmdsynopsis|funcsynopsis|classsynopsis|fieldsynopsis|constructorsynopsis|destructorsynopsis|methodsynopsis|formalpara|para|simpara|address|blockquote|graphic|graphicco|mediaobject|mediaobjectco|informalequation|informalexample|informalfigure|informaltable|equation|example|figure|table|msgset|procedure|sidebar|qandaset|task|anchor|bridgehead|remark|highlights|abstract|authorblurb|epigraph|indexterm|beginpage)+".This error message is a little more difficult to understand, so understanding of the syntax or processing rules for theDocBook <strong>XML</strong> DTD's listitem element is recommended. However, the error message does give us a clue as to thesource of the problem, indicating that “The content of element type c must match”.Luckily most standards based DTD's, <strong>XML</strong> Schema's and Relax NG schemas are supplied with reference documentation.This enables us to lookup the element and read about it. In this case you should learn about the child elements oflistitem and their nesting rules. Once you have correctly inserted the required child element and nested it in accordancewith the <strong>XML</strong> rules, the document will become valid on the next validation test.Caching the Schema Used for ValidationIf you don't change the active editor and you don't switch to other application, the schema associated to the currentdocument is parsed and cached by the first Validate Document action and is reused by the next actions without re-parsingit. This increases the speed of the validate actions if the schema is large or is located on a remote server on the Web. Toreset the cache and re-parse the schema you have to use the Reset Cache and Validate action. This action willalso re-parse the catalogs and reset the schema used for content completion.Automatic Validation<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> can be configured to mark validation errors in the document as you are editing. If youenable the Automatic validation option any validation errors and warnings will be highlighted automatically in theeditor panel. The automatic validation starts parsing the document and marking the errors after a configurable delayfrom the last key typed. Errors are highlighted with underline markers in the main editor panel and small rectangles onthe right side ruler of the editor panel, in the same way as for manual validation invoked by the user.

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

Saved successfully!

Ooh no, something went wrong!