复杂类型的枚举 [英] Enumeration of a complex type

查看:124
本文介绍了复杂类型的枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何进行复杂类型的枚举?

How can I make an enumeration of a complex type?

例如,我要将以下数据存储到名为Measurements的xsd枚举中

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


  • 说明

  • 标签

  • 项目

项目

标签文件名

每个这些属性中的一个具有特定的值,并且此设置使我的枚举成为一个注册表。但是问题是,据我所知,枚举中只允许使用 value属性。

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.

推荐答案

就像XML Schema中的复杂类型枚举一样。您需要在外部进行组织。参见

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

以获得实现示例。

这篇关于复杂类型的枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆