declare namespace b = "http://businesscard.org"; declare function local:t-card($x) {
|
{ local:t-name($x/b:name) }
{ local:t-title($x/b:title) }
{ local:t-email($x/b:email) } { if ($x/b:phone) then (text{ "Phone:" }, local:t-phone($x/b:phone), element br {()}) else () } |
{ if ($x/b:logo) then element img { attribute src { $x/b:logo/@uri } } else () } |