78
If-Then-Else
FOR $h IN //holding
RETURN <holding>
                     {  $h/title,
                         IF $h/@type = "Journal"
                                   THEN $h/editor
                         ELSE $h/author
                      }
               </holding> SORTBY (title)