假设我有两个这样的规则:
JFalse = element JFalse {
attribute label { xs:string }?,
attribute jump { xs:string }?,
attribute offset { xs:integer }?
}
JGt = element JGt {
attribute label { xs:string }?,
attribute jump { xs:string }?,
attribute offset { xs:integer }?
}
(实际上要多得多)
我想做的显然是这样的:
JFalseOrJGt = element (JFalse | JGt) {
attribute label { xs:string }?,
attribute jump { xs:string }?,
attribute offset { xs:integer }?
}
(但以上无效)。我可以以其他方式做到这一点,这会导致更“压缩”的语法规则吗?