© 2008 syncRO soft ltd. | A complex XML document is usually split in smaller interrelated modules which do not make much sense individually and which cannot be validated in isolation due to interdependencies with the other modules. A mechanism is needed to set the main module of the document which in fact must be validated when an imported module needs to be checked for errors. A typical example is the chunking DocBook XSL stylesheet which has
Validation of To define a validation scenario first open the Configure Validation Scenario dialog which displays a list of reusable scenarios for documents of the same type as the current document. You do this with the Configure Validation Scenario action available on the menu and on the toolbar of the <oXygen/> plugin A validation scenario is created or edited in a special dialog opened with the New button or with the Edit one. The table columns are:
A row of the table is created or edited in the following dialog: The components of the dialog are the same as the columns of the table displayed in the scenario edit dialog. The URL of the main module can be specified with the help of a file browser for the local file system (the button), with the help of the Open FTP / SFTP / WebDAV dialog opened by the button or by inserting an editor variable from the following pop-up menu: A second benefit of a validation scenario is that the stylesheet can be validated with several engines to make sure that it can be used in different environments with the same results. For example an XSLT stylesheet needs to be applied with Saxon 6.5, Xalan and MSXML 4.0 in different production systems. Other examples of documents which can benefit of a validation scenario are a complex XQuery with a main module which imports modules developed independently but validated in the context of the main module of the query and an XML document in which the master file includes smaller fragment files using XML entity references. In an XQuery validation scenario the default validator of <oXygen/> (Saxon 9) or any connection to a database that supports validation (Oracle 11g, Berkeley DB XML Database, IBM DB2, eXist XML Database, MarkLogic, Microsoft SQL Server, Software AG Tamino, X-Hive/DB XML Database, TigerLogic, MySQL) can be set as validation engine. © 2008 syncRO soft ltd. |