by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


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 }

This text is released under the Free Software Foundation GFDL.