Could anyone please explain to me how to create an XPATH expression to retrieve data that relates to a specific ID within an IDREFS
string.
I would like to retrieve the data within the 'description' tags for each 'event' whose id's are referenced in the '@events' within the 'requirement' element.
Could anyone please explain this using the below information?
Thanks,
Tristan
DTD:
<!ELEMENT requirement (#PCDATA)>
<!ATTLIST requirement number ID #REQUIRED
events IDREFS #REQUIRED>
XML:
<requirement id="req1" events="ev1 ev2">All solutions to existing problems must be authorized by the technical director</requirement>
<event id="ev1">
<description>creating a solution</description>
</event>
<event id="ev2">
<description>implementing solution</description>
</event>