Sign In/My Account | View Cart  
advertisement

Article:
 Normalizing XML, Part 2
Subject: possible typo?
Date: 2003-01-27 12:30:14
From: Will Provost
Response to: possible typo?

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.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: