I have a xml document in which i have used IDs and IDREFs in the hope that they could be connected in xlst using xpath, but I haven't been able to find a solution as to how. My xml goes like this:
<root>
<list>
<item id="c1"> <description> Class 1 </description> </item>
<item id="gc1"> <description> Gym-class 1 </description> </item>
<item id="c2"> <description> Class 2 </description> </item>
</list>
<school name="abc">
<schedule>
<class idref="c1">
<day>monday</day>
<day>friday</day>
</class>
</schedule>
</school>
<school name="def">
<schedule>
<class idref="gc1">
<day>tuesday</day>
<day>thurday</day>
</class>
</schedule>
</school>
</root>
And I wanted to make a connection in a way that on the output (which is html) when I reference the value in idref, what shows up would be the description in the list, in the beggining. Is this even possible?