Correct example of using custom classes in XRC schema comments.
Include the required namespaces declarations. Also fix a syntax error in the example (s/,/&/) and show an example attribute definition.
This commit is contained in:
parent
72cba11aa2
commit
ca42b4a686
@ -24,6 +24,9 @@
|
||||
#
|
||||
# You can also add validation for custom classes:
|
||||
#
|
||||
# default namespace = "http://www.wxwidgets.org/wxxrc"
|
||||
# namespace xrc = "http://www.wxwidgets.org/wxxrc"
|
||||
#
|
||||
# include "xrc_schema.rnc" {
|
||||
# customClasses = myExtensionClasses
|
||||
# }
|
||||
@ -31,8 +34,9 @@
|
||||
# myExtensionClasses = (MyFoo | MyBar | ...)
|
||||
# MyFoo =
|
||||
# element object {
|
||||
# attribute class { "MyFoo" },
|
||||
# stdObjectNodeAttributes,
|
||||
# attribute class { "MyFoo" } &
|
||||
# stdObjectNodeAttributes &
|
||||
# [xrc:p="o"] element myElem {_, t_text }*
|
||||
# ...
|
||||
# }
|
||||
# ...
|
||||
|
Loading…
Reference in New Issue
Block a user