Modes
Let's examine the XHTML+RDF+MathML+SVG NVDL script in detail.
Example 2. Modes
Completely different behavior of the NVDL validation process can be defined for each mode
.
Modes
correspond to significant contexts within the input document. Beside the root mode
, in this case, we define also modes
for inline
and block
HTML elements and for the head
section of the document.
<rules startMode="root"> <mode name="root"> ... </mode> <mode name="block_inline"> ... </mode> <mode name="head"> ... </mode> </rules>