};
declare function c:href($node as item()) as xs:string{
concat(local-name($node), '_', $node/@id, '.html')
};
declare function c:writelist($nodes){
for $node in $nodes order by $node/@title return
A collection of technology projects undertaken by BT employees in their spare time
,
$peoplemenu :=
Widoh People
Anyone is welcome to present, so long as they have a technology project which they've undertaken in their spare time.
,
$projectmenu :=
Widoh Projects
Whatever the technology project, the more playful the better. No business cases required.
return (
for $page in $allpages return c:writepage(c:href($page),$page/div[*], $defaultmenu) ,
for $person in $allpersons order by $person/@title return c:writepage(c:href($person),(c:writelabel($person),