renoua 0 Newbie Poster

hello,
I need some help with my assignment.
I have a XML file (EAD) that has some general info about 106 old documents and the library that are located and a description for every one in 106 <c01> tags . Each document has an id in c01/did/unitid (unitid tag).
I created 3 XSL, the first one for the header, the second one for general info and the third for the c01.
I also created a PHP page(anna.php) that has 3 div.
The first div has the header and the second div is like a menu, and the third has the information (by default).
I presented every xsl using scripts.
The second div has a list of the id’s of every document.
I presented them using php code :

<?php
$dom = new DomDocument();
$dom->load("anna.xml");
$xp = new domxpath($dom);
$titles = $xp->query("/ead/archdesc/dsc/c01/did/unitid");
foreach ($titles as $node) 
{  
 print    "<a href='c01.php?node=$node->textContent' > $node->textContent</a>" ;
print 	 "<br/>";
}
?>

When user selects an id of a document from the list, I would like to present the corresponding <c01> with the xsl format of it, at the third div(that has by default information).
I managed to take the value of id at c01.php and compare it with unitid of the xml.

<?php
$id = $_GET['node'];
$dom = new DomDocument();
$dom->load("anna.xml");
$xp = new domxpath($dom);
$unitid = $xp->query("/ead/archdesc/dsc/c01/did/unitid");
foreach ($unitid as $x) 
{	
if ($x->textContent == $id) 
{??}	
}
?>

what’s next?

I am stuck..since my programming experience is poor ..