Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
は次のxmlとおりです。
xml
<range from="100" to="200"/>
xsdでは、属性toが常に より大きいことを保証するために をどのように記述すればよいfromでしょうか?
xsd
to
from
スキーマは、定義上、ドキュメントのスキーマを定義するだけで、条件付きデータを検証しません。アプリケーションでそれを行う必要があります。
XSD 1.1 では、「範囲」の型に関するアサーションを使用して、その制約を課すことができます。XSD 1.0 では、制約は表現できません。