- Where can i insert user defined function in this document?
- How do i insert the faculty value into a tag?
{
for $f in doc(“researchnet.xml”)/university,
$s in $f/staff/row
order by $s/name
return
<Senior-staff-="{$s/faculty/text()}"> (:error, how do i insert the faculty value into a tag?:)
{
if (contains($s/position, “Professor”))
then {count($s/position)=1}
else {count($s/position)=0}
}
{$s/name}{$s/position}
}
researchnet.xml (4.07 KB)