Refined package selection for webdoc