Skip to content

Commit

Permalink
Correct example of using custom classes in XRC schema comments.
Browse files Browse the repository at this point in the history
Include the required namespaces declarations.

Also fix a syntax error in the example (s/,/&/) and show an example attribute
definition.
  • Loading branch information
vadz committed Apr 7, 2015
1 parent 72cba11 commit ca42b4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions misc/schema/xrc_schema.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@
#
# 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
# }
#
# myExtensionClasses = (MyFoo | MyBar | ...)
# MyFoo =
# element object {
# attribute class { "MyFoo" },
# stdObjectNodeAttributes,
# attribute class { "MyFoo" } &
# stdObjectNodeAttributes &
# [xrc:p="o"] element myElem {_, t_text }*
# ...
# }
# ...
Expand Down

0 comments on commit ca42b4a

Please sign in to comment.