Hi
I' am trying to get the next value within a node set

I can find all the values I search for with my xpath, if the value I search for is found, directly after the 1. <DepartmentReference> element, Then will
the next value(Eg. 7704e091-947f-4a00-8600-000001300001) for the next subnode be returned.

If the value I search for is 7704e091-947f-4a00-8600-000001300001 and want the next subnodes value, it return <nothing>, where I did expect to get the value 5d7f3c91-947f-4a00-9800-000001340001
This behavior is for all where the value found is not the 1. node after the <DepartmentReference> element


How can I find a value from the posistion where it is found its value and get the next subnode value

Please be aware that this is done in XSLT
$result = a nodeset containing the xml structure
$DeptAndOrgNrpt2 = <DepartmentIdentifier>DIR</DepartmentIdentifier>

My code are:
<xsl:variable name="StructualParentSearchValue" select="$result//*/*[local-name()='myxml']/*[local-name()='DepartmentReference'][*[local-name()='DepartmentIdentifier']=$DeptAndOrgNrpt2]/*[local-name()='DepartmentReference']/*[local-name()='DepartmentUUIDIdentifier']/node()"/>


<myxml>
<DepartmentReference>
<DepartmentIdentifier>DIR</DepartmentIdentifier>
<DepartmentUUIDIdentifier>4c507492-947f-4a00-9400-000001340001</DepartmentUUIDIdentifier>
<qq20080201DepartmentLevelIdentifier>Afdelings-niveau</qq20080201DepartmentLevelIdentifier>
<DepartmentReference>
<DepartmentIdentifier>0DI</DepartmentIdentifier>
<DepartmentUUIDIdentifier>7704e091-947f-4a00-8600-000001300001</DepartmentUUIDIdentifier>
<qq20080201DepartmentLevelIdentifier>NY3-niveau</qq20080201DepartmentLevelIdentifier>
<DepartmentReference>
<DepartmentIdentifier>0DIR</DepartmentIdentifier>
<DepartmentUUIDIdentifier>5d7f3c91-947f-4a00-9800-000001340001</DepartmentUUIDIdentifier>
<qq20080201DepartmentLevelIdentifier>NY4-niveau</qq20080201DepartmentLevelIdentifier>
</DepartmentReference>
</DepartmentReference>
</DepartmentReference>
</myxml>
TIA