复杂类型的枚举

发布于 2024-08-26 20:26:54 字数 210 浏览 4 评论 0原文

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

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

  • 描述
  • 标记
  • 项项

标记

文件名

这些属性中的每一个都有一个特定值,并且此集在我的枚举中创建一个注册表。但问题是,据我所知,枚举中只允许使用“value”属性。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

楠木可依 2024-09-02 20:26:54

XML 模式中没有什么比复杂类型枚举更好的了。您需要在外部组织它。请参阅

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

实现例子。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文