qtspecs icon indicating copy to clipboard operation
qtspecs copied to clipboard

296 Allow default-namespace=##any

Open michaelhkay opened this issue 9 months ago • 2 comments

Allows the default namespace for elements and types to have the special value "##any", which causes unprefixed QNames to match elements in any namespace. Use cases include:

  • Casual ad-hoc XPath queries, where over-retrieval isn't a problem
  • Use with HTML, where it can be unpredictable whether elements will be in a namespace, and where users are accustomed to browser behaviour with its "wilful violation" of the XPath 1.0 specification
  • Any environment where multiple namespaces are in use for variants of what is essentially the same vocabulary of element names (for example, where the XML designer has made the mistake of versioning the namespace URI)

michaelhkay avatar Apr 30 '24 22:04 michaelhkay