除了其他属性之外,是否有一种通用的方法来指定任何属性?
要指定任何属性,语法为:
element Test {
attribute * { text }*
}
但是如果我已经定义了属性,我必须在使用*
名称类时删除它们:
element Test {
attribute foo { text },
attribute bar { text }?,
attribute * - (foo|bar) { text }*
}
如何指定任何其他属性而无需手动跟踪所有已定义的属性?