|
That's correct. In fact, in double-checking this I discovered that there are also some missing namespace prefixes; the result was that the instance document was being incorrectly passed because the field xpath was resolving to an empty set.
The correct lines for the keys and keyref are as follows:
<key name="RealtorKey">
<selector xpath="h:Realtor" />
<field xpath="h:contact/h:name" />
</key>
</element>
</sequence>
</complexType>
<key name="UnitIDKey">
<selector xpath="h:HousingUnit" />
<field xpath="@unitID" />
</key>
<keyref name="HousingUnitToRealtor" refer="h:RealtorKey">
<selector xpath="h:HousingUnit" />
<field xpath="h:realtor" />
</keyref>
</element>
</schema>
Good catch! Thanks.
|