【发布时间】:2017-01-12 17:36:46
【问题描述】:
simpleType 的架构和注释 有问题。
我的架构:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
/...CODE.../
<xsd:simpleType name="DateTimeType">
<xsd:restriction base="xsd:dateTime"/>
<xsd:annotation> <!--Line: 161 -->
<xsd:documentation>
Date time
</xsd:documentation>
</xsd:annotation>
</xsd:simpleType>
</xsd:schema>
我的错误
lineNumber: 161; columnNumber: 25; s4s-elt-must-match.1: The content
of 'simpleType' must match (annotation?, (restriction | list | union)).
A problem was found starting at: annotation.
我该如何解决?
问候
【问题讨论】: