Allow "feature" attribute in XRC schema
This is just a hack because we handle "feature" as part of "platform"
when it's not really related to it, but as it has to be treated in the
same way, it's the simplest way to allow it.
This should also have been done in 3fdebc96cd (Add support for XRC
"feature" attribute, 2023-01-29) but was forgotten there.
This commit is contained in:
parent
44b99195bc
commit
829fe8154b
1 changed files with 2 additions and 0 deletions
|
|
@ -430,7 +430,9 @@ stdWindowProperties =
|
|||
[xrc:p="o"] element ownfont {_, t_font }* &
|
||||
[xrc:p="o"] element help {_, t_text }*
|
||||
|
||||
# hack: add "feature" to "platform" because it also can be used on any element
|
||||
platform =
|
||||
attribute feature { t_string }? &
|
||||
attribute platform {
|
||||
xsd:string { pattern = "(win|mac|msw|unix)( *\| *(win|mac|msw|unix))*" }
|
||||
}?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue