Here is what I learned looking into xpointers a while back (see
https://groups.google.com/g/pretext-dev/c/ns2ZJtEMAcY/m/9HVsiTFwAAAJ).
"lxml (and xsltproc) handle xpointer="xpointer(...)" just fine, but I think this is the only xsl processing software that has implemented the xpointer language; the langue is only a W3C draft (since 2001). However, the xpointer framework, that allows you to have an `@xpointer`, and the `element(...)` mechanism are W3C recommendations, so have broad support. It appears that the only real downside to only recommending use of `element()` or just a bare xml:id as the value of the `@xpointer` is that you need to always have an xml:id, rather than just referring to types of elements."
So depending on how you reference the part of the file you are including, you are getting a robust and supported system.