1
如何編寫XSD以驗證StartDate元素和EndDate元素是否在Quarter元素和Year元素內?謝謝。XSD和日期範圍驗證
<OrganizationName>Chevron</OrganizationName>
<Quarter>4</Quarter>
<Year>2010</Year>
<Fuel>
<FuelPathwayCode>CARBOBCB001</FuelPathwayCode>
<PhysicalPathwayCode>PP001</PhysicalPathwayCode>
<transaction-item type="Production or Import">
<StartDate>2010-04-01</StartDate>
<EndDate>2010-04-15</EndDate>
<Amount>1000</Amount>
<BusinessPartnerID>2</BusinessPartnerID>
<Description>Test description</Description>
</transaction-item>
+1正好,它沒有。 – 2009-12-15 06:24:53