是否可以使用 XML Schema 验证 job_position 中的 userId 以仅匹配“person”元素中提供的值?
<person id="1">
<firstName>Jo</firstName>
<lastName>Smi</lastName>
</person>
<person id="2">
<firstName>John</firstName>
<lastName>Smith</lastName>
</person>
<job_position>
<userId>1</userId> <!-- This is valid -->
<position>Manager</position>
</job_position>
<job_position>
<userId>2</userId> <!-- This is valid -->
<position>Programmer</position>
</job_position>
<job_position>
<userId>3</userId> <!-- This is Invalid -->
<position>Systems Analyst</position>
</job_position>