2017-06-02 5 views
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. 

答えて

1

私の推測では、あなたが "emtpy" として "空" スペルが間違っていることでしょう。どちらか、それとも非常に奇妙なエラーメッセージです。

(ただし、「GT」の比較も少し...私たちは風変わりなと言うものらしいの結果に空()関数を適用?)

+0

おかげ氏ケイ。私はその質問を削除するだろうが、この答えはそれをブロックしている。 – Michael

+0

質問を削除する理由ちょうど答えを受け入れてください。いつか誰かが同じことをし、Googleが答えを見つけるでしょう... –

+0

問題はありません! – Michael

関連する問題