EDN Admin
Well-known member
I cannot figure out why I cant compare two dates in my XML file using Schematron.
I am using the DLL from MSDN at: msdn.microsoft.com/en-us/library/aa468554.aspx
The error is misleading as it should not be tripped:
<br/>
<pre>From pattern "Check co-occurrence constraints"
Assert fails: VisitDate must be greater than dataBeginDate<br/>At: /MyData[1]/Site[1]/Patient[1]/form_Baseline[1]/dat_VisitDate[1]
<dat_VisitDate signedWho="System" value="2009-02-02 ...</dat_VisitDate>
(Line: 7, Column: 10)
[/code]
Here is the Schematron rule:
<div style="color:black; background-color:white
<pre><span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule <span style="color:red context<span style="color:blue =<span style="color:black "<span style="color:blue MyData/Site/Patient/form_Baseline/dat_VisitDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert <span style="color:red test<span style="color:blue =<span style="color:black "<span style="color:blue @value > //MyData/@dataBeginDate<span style="color:black " <span style="color:blue ><span style="color:blue <span style="color:#a31515 <span style="color:blue VisitDate must be greater than dataBeginDate<span style="color:blue <span style="color:#a31515 <span style="color:blue <span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule<span style="color:blue >
[/code]
<br/>
Here is the XML file:
<div style="color:black; background-color:white
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 MyData <span style="color:red xmlns:xsd<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black " <span style="color:red xmlns:xsi<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema-instance<span style="color:black " <span style="color:red dataBeginDate<span style="color:blue =<span style="color:black "<span style="color:blue 2008-01-01<span style="color:black " <span style="color:red dataEndDate<span style="color:blue =<span style="color:black "<span style="color:blue 2011-04-26<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 Site <span style="color:red SiteKey<span style="color:blue =<span style="color:black "<span style="color:blue 11<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 Patient <span style="color:red PatientKey<span style="color:blue =<span style="color:black "<span style="color:blue 33<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_StatusDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-01-01<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 form_Baseline<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_VisitDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-02-02<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 form_Baseline<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 form_Flowsheet <span style="color:red VisitDateKey<span style="color:blue =<span style="color:black "<span style="color:blue 2009-03-03<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_OtherDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-03-03<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 form_Flowsheet<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 Patient<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 Site<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 MyData<span style="color:blue >
[/code]
<br/>
Below is the XSD with the Schematron rule:
<div style="color:black; background-color:white
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema <span style="color:red xmlns:xs<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black "
<span style="color:red xmlns:xsi<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema-instance<span style="color:black "
<span style="color:red xmlns:sch<span style="color:blue =<span style="color:black "<span style="color:blue http://www.ascc.net/xml/schematron<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 title<span style="color:blue >Schematron Validation<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 title<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:date<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2000-01-01<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue integerMyKey<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:integer<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 maxInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 9999<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:string<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minLength <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 maxLength <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 32<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue MyData<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Site<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Patient<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue unbounded<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_StatusDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue form_Baseline<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_VisitDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 pattern <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Check co-occurrence constraints<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule <span style="color:red context<span style="color:blue =<span style="color:black "<span style="color:blue MyData/Site/Patient/form_Baseline/dat_VisitDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert <span style="color:red test<span style="color:blue =<span style="color:black "<span style="color:blue @value > //MyData/@dataBeginDate<span style="color:black "<span style="color:blue >
VisitDate must be greater than dataBeginDate <span style="color:blue <br/> <span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 pattern<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue form_Flowsheet<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue unbounded<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_OtherDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue VisitDateKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue PatientKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue SiteKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue integerMyKey<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dataBeginDate<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dataEndDate<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema<span style="color:blue >
[/code]
<br/>
<br/>
<br/>
View the full article
I am using the DLL from MSDN at: msdn.microsoft.com/en-us/library/aa468554.aspx
The error is misleading as it should not be tripped:
<br/>
<pre>From pattern "Check co-occurrence constraints"
Assert fails: VisitDate must be greater than dataBeginDate<br/>At: /MyData[1]/Site[1]/Patient[1]/form_Baseline[1]/dat_VisitDate[1]
<dat_VisitDate signedWho="System" value="2009-02-02 ...</dat_VisitDate>
(Line: 7, Column: 10)
[/code]
Here is the Schematron rule:
<div style="color:black; background-color:white
<pre><span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule <span style="color:red context<span style="color:blue =<span style="color:black "<span style="color:blue MyData/Site/Patient/form_Baseline/dat_VisitDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert <span style="color:red test<span style="color:blue =<span style="color:black "<span style="color:blue @value > //MyData/@dataBeginDate<span style="color:black " <span style="color:blue ><span style="color:blue <span style="color:#a31515 <span style="color:blue VisitDate must be greater than dataBeginDate<span style="color:blue <span style="color:#a31515 <span style="color:blue <span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule<span style="color:blue >
[/code]
<br/>
Here is the XML file:
<div style="color:black; background-color:white
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 MyData <span style="color:red xmlns:xsd<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black " <span style="color:red xmlns:xsi<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema-instance<span style="color:black " <span style="color:red dataBeginDate<span style="color:blue =<span style="color:black "<span style="color:blue 2008-01-01<span style="color:black " <span style="color:red dataEndDate<span style="color:blue =<span style="color:black "<span style="color:blue 2011-04-26<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 Site <span style="color:red SiteKey<span style="color:blue =<span style="color:black "<span style="color:blue 11<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 Patient <span style="color:red PatientKey<span style="color:blue =<span style="color:black "<span style="color:blue 33<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_StatusDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-01-01<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 form_Baseline<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_VisitDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-02-02<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 form_Baseline<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 form_Flowsheet <span style="color:red VisitDateKey<span style="color:blue =<span style="color:black "<span style="color:blue 2009-03-03<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 dat_OtherDate <span style="color:red signedWho<span style="color:blue =<span style="color:black "<span style="color:blue System<span style="color:black " <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2009-03-03<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 form_Flowsheet<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 Patient<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 Site<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 MyData<span style="color:blue >
[/code]
<br/>
Below is the XSD with the Schematron rule:
<div style="color:black; background-color:white
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema <span style="color:red xmlns:xs<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black "
<span style="color:red xmlns:xsi<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema-instance<span style="color:black "
<span style="color:red xmlns:sch<span style="color:blue =<span style="color:black "<span style="color:blue http://www.ascc.net/xml/schematron<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 title<span style="color:blue >Schematron Validation<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 title<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:date<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 2000-01-01<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue integerMyKey<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:integer<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 maxInclusive <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 9999<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction <span style="color:red base<span style="color:blue =<span style="color:black "<span style="color:blue xs:string<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 minLength <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 maxLength <span style="color:red value<span style="color:blue =<span style="color:black "<span style="color:blue 32<span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 restriction<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 simpleType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue MyData<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Site<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Patient<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue unbounded<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_StatusDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue form_Baseline<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_VisitDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 pattern <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Check co-occurrence constraints<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule <span style="color:red context<span style="color:blue =<span style="color:black "<span style="color:blue MyData/Site/Patient/form_Baseline/dat_VisitDate<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert <span style="color:red test<span style="color:blue =<span style="color:black "<span style="color:blue @value > //MyData/@dataBeginDate<span style="color:black "<span style="color:blue >
VisitDate must be greater than dataBeginDate <span style="color:blue <br/> <span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 assert<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 rule<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 sch<span style="color:blue :<span style="color:#a31515 pattern<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 appinfo<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 annotation<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue form_Flowsheet<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 0<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue unbounded<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dat_OtherDate<span style="color:black " <span style="color:red minOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black " <span style="color:red maxOccurs<span style="color:blue =<span style="color:black "<span style="color:blue 1<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue value<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue signedWho<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue VisitDateKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue PatientKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue stringNonEmpty<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue SiteKey<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue integerMyKey<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dataBeginDate<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 attribute <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue dataEndDate<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue dateMyDate<span style="color:black " <span style="color:red use<span style="color:blue =<span style="color:black "<span style="color:blue required<span style="color:black " <span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema<span style="color:blue >
[/code]
<br/>
<br/>
<br/>
View the full article