有没有办法为元素属性声明别名?例如,我有一个<Item>具有两个布尔属性fooAttribute和的元素barAttribute,具有别名foo,bar因此以下任何一项都是有效的:
<Item foo="true" bar="false" />
<Item foo="true" barAttribute="false" />
<Item fooAttribute="true" bar="false" />
<Item fooAttribute="true" barAttribute="false" />