Re: [xsl] json-to-xml namespace

Subject: Re: [xsl] json-to-xml namespace
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Dec 2024 11:42:36 -0000
On 11/12/2024 12:37, Elliotte Rusty Harold elharo@xxxxxxxxxxx wrote:
> On Tue, Dec 10, 2024 at 8:48b/AM Martin Honnenmartin.honnen@xxxxxx
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>> The XML representation of JSON that XSLT  3 and XPath 3.1 define and share
puts those elements into that namespace, like most XML vocabularies use a
namespace.
> Wow. That's a shockingly bad choice of namespace URL, as if namespaces
> weren't confusing enough already. Let's take elements that are neither
> XPath nor a function and put them in the xpath-functions namespace.
> Did nobody raise an issue here when the spec was written?

I don't know the answer to that but e.g.
https://www.w3.org/TR/xpath-functions-31/#func-analyze-string also puts
its result element into that namespace

    The function returns an element node whose local name
    is|analyze-string-result|. This element and all its descendant
    elements have the namespace URI|http://www.w3.org/2005/xpath-functions|

Current Thread