0
関連の比較:XSD 1.1 compare 2 datesXSD 1.1は2日付
は、ここに私のXMLスキーマの抜粋です:
<xs:complexType name="headerType">
<xs:sequence>
<xs:element name="ContentDate" type="dateTime" />
<xs:element minOccurs="0" name="DeltaStart" type="lei:LEIDateTimeProfile" />
</xs:sequence>
<xs:assert test="empty(dateTime(./DeltaStart) gt dateTime(./ContentDate))" />
</xs:complexType>
<xs:element name="header" type="headerType" />
すべてのアイデアは、次のXMLスニペットは、検証エラーの原因となっている理由は?
<header>
<ContentDate>2017-02-01T12:00:00Z</ContentDate>
<DeltaStart>2017-02-01T12:00:00Z</DeltaStart>
</header>
ここでエラーメッセージです:
Assertion evaluation ('emtpy(dateTime(./DeltaStart) gt dateTime(./ContentDate))') for element 'LEIHeader' on schema type 'LEIHeaderType' did not succeed.
XPST0017 - Function does not exist: emtpy arity: 1.
おかげ氏ケイ。私はその質問を削除するだろうが、この答えはそれをブロックしている。 – Michael
質問を削除する理由ちょうど答えを受け入れてください。いつか誰かが同じことをし、Googleが答えを見つけるでしょう... –
問題はありません! – Michael