Enumeration of a complex type

六眼飞鱼酱① 提交于 2020-01-05 05:31:06

问题


How can I make an enumeration of a complex type?

For example, I want to store the following data into a xsd enumeration called Measurings

  • description
  • tag
  • item

item

tag fileName

each one of these attributes has an specific value and this set makes one registry in my ennumeration. But the problem is that as far as I know, it's allowed just the "value" attribute in an enumeration.


回答1:


There is nothing like complex type enumeration in XML Schema. You'll need to organize it externally. See

http://schemas.opengis.net/gml/3.1.1/base/dictionary.xsd http://schemas.opengis.net/definitions/axisDirection.xml

for an implementation example.



来源:https://stackoverflow.com/questions/2540752/enumeration-of-a-complex-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!