Maybe Hans-Jürgen Rennau's paper on location tree is a start:
Rennau, Hans-Jürgen. 2017. “Location Trees Enable XSD Based Tool
Development.” In XML London 2017 Conference Proceedings,
20–37. London, United Kingdom: XML
London. https://doi.org/10.14337/XMLLondon17.Rennau01.
IIRC it describe a program that generates all possible locations
described by an XSD.
Just looked at briefly, at Hans-Jürgen Rennau's paper cited above (its nice). It seems to, represent XML paths handled by XSD document by its own path grammar, which isn't XPath it seems and introduces its own names not described by XPath grammar. I guess, Roger needs strict XPath based tool.