Name

include — Grammar merge

Synopsis

“include” literal [
inherit] ["{” 
includeContent* “}"]

Restrictions

grammarContent

May be included in

div, grammar

XML syntax equivalent

include

Description

The include pattern includes a grammar and merges its definitions with the definitions of the current grammar. The definitions of the included grammar may be redefined and overridden by the definitions embedded in the include pattern. Note that a schema must contain an explicit grammar definition in order to be included.

The optional inherit production specifies which namespaces are inherited from the included schema. includeContent allows you to redefine definitions from the included schema.

Example

include "included.rnc"
include "flat.rnc" { start = book-element }
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.70.209