- os << "<ulink url=\""
- << subst(getParam("target"), from_ascii("&"), from_ascii("&"))
- << "\">"
- << xml::escapeString(getParam("name"))
- << "</ulink>";
- return 0;
+ docstring target = subst(getParam("target"), from_ascii("&"), from_ascii("&")) ;
+ xs << xml::StartTag("link", "xlink:href=\"" + makeURL(target, getParam("type")) + "\"");
+ xs << xml::escapeString(getParam("name"));
+ xs << xml::EndTag("link");