{jsession:=extract(@href,"jsessionid=[0-9a-zA-Z_-]*")} {$CSId:=@value} { (id("selectedViewBranchlib"), id("selectedBranchView"))[1] ! ( home-branches := option, home-branch-values := option/@value, home-branch-name := @name ), (//select[@id=("selectedSearchBranchlib", "Suche in Zweigstelle", "searchRestrictionValue1_0")])[1] ! ( search-branches := option, search-branch-values := option/@value, search-branch-name := @name, search-branch-extended-options := if (@id = "Suche in Zweigstelle") then ./preceding-sibling::input[1] else () ) }