2
鑑於以下XML:XML架構二級鍵/ keyref約束
<root>
<families>
<family familyname="Flintstone">
<member name="Fred"/>
<member name="Wilma"/>
</family>
<family familyname="Rubble">
<member name="Barney"/>
<member name="Betty"/>
<member name="Bamm-Bamm"/>
</family>
</families>
<employees>
<employee name="Fred" familyname="Flintstone"/>
<employees>
</root>
是否有可能建立在XSD鍵/ keyref約束驗證empployee的有效性?
以下的鍵不起作用(在keyref是straigt前鋒):
<xs:key name="Individuals">
<xs:selector xpath="./families/family/member"/>
<xs:field xpath="@name"/>
<xs:field xpath="../@familyname"/>
</xs:key>
是否有一個有效的替代?