-
Notifications
You must be signed in to change notification settings - Fork 20
Description
declare namespace x='x';
<x:ele/> instance of element(x:ele)Expected: true
Actual: false
Interestingly enough, this works like a charm in type switches:
https://xpath.playground.fontoxml.com/?state=H4sIAFhelGgAAz2OzQqCQBSFX%2BUyBFMQRFtTdz1AqzazmcZTCeNVxmtdEd89i2p3fr7FN5mmrWCy%2FdY8fKr9JaI3mZlmszXaxCXmSrvy3U4D0rgMFUL0CcS%2BQd%2F5ANLCqj04jhBaKWUF5ZohYlc6dpwgQ2KSsUP%2FrCXc1yvdkOPge9BCNWBZf%2FgNfVl71A5BUFnHFa5%2BiPK%2Fzqnlm12EQssClZ%2BWmV8%2FMl4VzAAAAA%3D%3D
declare namespace x='x';
let $x := <x:ele/>
return typeswitch($x)
case element(x:ele) return 'Expected'
default return 'Wrong'This has to do with namespaces. If I omit the prefixes, all is well.
Metadata
Metadata
Assignees
Labels
No labels