Namespace-based Validation Dispatching Language

Namespace-based Validation Dispatching Language

Namespace-based Validation Dispatching Language (NVDL) is an XML schema language for validating XML documents that integrate with multiple namespaces. It is an ISO/IEC standard, and it is Part 4 of the DSDL schema specification. Much of the work on NVDL is based on the older Namespace Routing Language.

Contents

Validation

Most XML languages are based on a single XML namespace. The expectation in these cases is that XML elements in a particular namespace belong to that language, and elements in another namespace belong to another language. Many XML languages allow the use of arbitrary elements from other namespaces.

The problem arises during the attempt to validate these hybrid documents. Each language is defined by a specific XML schema, but there is no linkage between the schemas.

The purpose of NVDL is to provide that linkage, based on namespaces. By associating a schema validator with an NVDL schema, the validator can use multiple schemas to validate a single document, switching between them based on the namespaces used in that document.

Format

NVDL documents contain a list of rules, each of which has one or more actions to take when that rule is true. Rules include a specific namespace and a mode setting. NVDL recognizes the mode as a particular piece of state that changes as the document is processed.

Actions occur when a rule is true. Actions can include validating a schema, declaring the instance document invalid, accepting this part of the instance document as valid, and continue validating as the parent did. Actions can also change the current NVDL mode. Multiple actions can be taken when a rule is true; this allows for validating a section of the instance document with multiple schemas of a different type.

Example

<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
  <namespace ns="http://www.w3.org/1999/xhtml">
    <validate schema="xhtml.rng"/>
  </namespace>
  <namespace ns="http://www.w3.org/2000/svg/">
    <validate schema="svg.sch"/>
  </namespace>
  <anyNamespace>
    <reject/>
  </anyNamespace>
</rules>

This NVDL schema will validate the parts that use the XHTML 1.0 namespace with a RELAX NG schema, validate the parts that use the SVG 1.0 namespace with a Schematron schema, and reject the document as invalid if it encounters elements with any other namespace.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Namespace-based Validation Dispatching Language — Die Namespace based Validation Dispatching Language (NVDL) ist eine XML Schemasprache zum Validieren von XML Dokumenten, deren Struktur mit verschiedenen Schemasprachen und in unterschiedlichen Namensräumen definiert wurde. NVDL ist ein ISO/IEC… …   Deutsch Wikipedia

  • XML Schema Language Comparison — An XML schema is a description of a type of XML document, typically expressed in terms of constraints on the structure and content of documents of that type, above and beyond the basic syntax constraints imposed by XML itself. There are several… …   Wikipedia

  • Document Schema Definition Language — Document Schema Definition Languages Document Schema Definition Languages (DSDL) est un cadre qui décrit les multiples tâches de validation de différents types qui peuvent s appliquer à un document XML, afin de parvenir à des résultats de… …   Wikipédia en Français

  • ISO/IEC 19757 — Document Schema Definition Languages (DSDL, deutsch etwa „Dokumentenstruktur Definitionssprachen“) definiert einen Rahmen, innerhalb dessen mehrere verschiedene Typen von Prüfungen auf XML Dokumente angewandt werden können. Dies erlaubt eine… …   Deutsch Wikipedia

  • Document Schema Definition Languages — (DSDL) ist ein im Rahmen der ISO laufendes Projekt zur Standardisierung verschiedener Methoden zur Prüfung von XML Dokument. Die Verbindung verschiedener Methoden erlaubt eine vollständigere Validierung von Dokumente, als es mit nur einer Technik …   Deutsch Wikipedia

  • Document Schema Definition Languages — (DSDL) is a framework within which multiple validation tasks of different types can be applied to an XML document in order to achieve more complete validation results than just the application of a single technology. It is specified by the… …   Wikipedia

  • DSDL — Document Schema Definition Languages Document Schema Definition Languages (DSDL) est un cadre qui décrit les multiples tâches de validation de différents types qui peuvent s appliquer à un document XML, afin de parvenir à des résultats de… …   Wikipédia en Français

  • Document Schema Definition Languages — (DSDL) est un cadre qui décrit les multiples tâches de validation de différents types qui peuvent s appliquer à un document XML, afin de parvenir à des résultats de validation plus complets que ce que donnerait seulement l application d une… …   Wikipédia en Français

  • List of XML markup languages — This page aims to list articles related XML markup languages. This is so that those interested in the subject can monitor changes to the pages by clicking on Related changes in the sidebar and on the bottom of the page.The list is not necessarily …   Wikipedia

  • NVDL — Die Namespace based Validation Dispatching Language (NVDL) ist eine XML Schemasprache zum Validieren von XML Dokumenten, deren Struktur mit verschiedenen Schemasprachen und in unterschiedlichen Namensräumen definiert wurde. NVDL ist ein ISO/IEC… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”