Report an element type declaration.

The content model will consist of the string EMPTY, the string ANY, or a parenthesised group, optionally followed by an occurrence indicator. The model will be normalized so that all parameter entities are fully resolved and all whitespace is removed,and will include the enclosing parentheses. Other normalization (such as removing redundant parentheses or simplifying occurrence indicators) is at the discretion of the parser.

Parameters:

  • name: element type name.
  • model: content model as a normalized string.

Property definitions

sax $ DeclHandler :: element_decl
	# Report an element type declaration.
	#
	# The content model will consist of the string `EMPTY`, the
	# string `ANY`, or a parenthesised group, optionally followed
	# by an occurrence indicator. The model will be normalized so
	# that all parameter entities are fully resolved and all whitespace
	# is removed,and will include the enclosing parentheses. Other
	# normalization (such as removing redundant parentheses or
	# simplifying occurrence indicators) is at the discretion of the
	# parser.
	#
	# Parameters:
	#
	# * `name`: element type name.
	# * `model`: content model as a normalized string.
	fun element_decl(name: String, model: String) do end
lib/sax/ext/decl_handler.nit:33,2--48,53

saxophonit $ SAXEventLogger :: element_decl
	redef fun element_decl(name, model) do
		log.push(["element_decl", name, model])
		if decl_handler != null then
			decl_handler.element_decl(name, model)
		end
	end
lib/saxophonit/testing.nit:441,2--446,4