https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2019-11-28T09:36:08ZSaxonica Developer CommunitySaxon - Support #4398: resolve-QName thinks prefix is not declared when it is not in use on literal result elementhttps://saxonica.plan.io/issues/4398?journal_id=145672019-11-28T09:36:08ZMichael Kaymike@saxonica.com
<ul></ul><p>I think this one is a user error. You need to remove the attribute</p>
<pre><code>exclude-result-prefixes="#all"
</code></pre>
<p>from the stylesheet. The attribute causes the "ord" namespace declaration to be omitted from the constructed <code><root></code> element</p> Saxon - Support #4398: resolve-QName thinks prefix is not declared when it is not in use on literal result elementhttps://saxonica.plan.io/issues/4398?journal_id=145732019-11-28T12:03:20ZMichael Kaymike@saxonica.com
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Support</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Closing as user error (please re-open if you think I'm wrong)</p> Saxon - Support #4398: resolve-QName thinks prefix is not declared when it is not in use on literal result elementhttps://saxonica.plan.io/issues/4398?journal_id=145742019-11-28T14:12:55ZPriscilla Walmsleypwalmsley@datypic.com
<ul></ul><p>Thanks, you're right of course. For some reason I always thought of exclude-result-prefixes stripping the namespace declarations in the actual (final) results, not affecting the values of variables, but I see now the spec is clear on this point.</p>