Although, both of those are possible with the little-known (and little-implemented) XML Linking Language (XLink), a W3C standard. XLink allows one to define links on arbitrary tags, many-to-many links, links between external resources, and links to specific positions and ranges using XPath.