void hrefPrinter::startElement(const std::string&, const std::string& localName,
const std::string&, const SAX::Attributes& atts)
{
xmlbaseTracker_.startElement(atts);
std::string href = atts.getValue("http://www.w3.org/1999/xlink", "href");
if(href.empty())
return;
std::cout << "href '" << href << "' resolves to the URI '"
<< xmlbaseTracker_.makeAbsolute(href)
<< "'" << std::endl;
} // startElement
void hrefPrinter::endElement(const std::string&, const std::string& localName,
const std::string&)
{
xmlbaseTracker_.endElement();
} // endElement