Re: [xsl] Indirect referencing in XSLT/XPath?

Subject: Re: [xsl] Indirect referencing in XSLT/XPath?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Apr 2025 20:08:16 -0000
On 05/04/2025 22:01, Roger L Costello costello@xxxxxxxxx wrote:
Hello Dimitre,



I ran your solution:



let $aircraft := {"altitude": {"units" : "Flight_Level"} } return
$aircraft?altitude?units



in the Oxygen XPath bar and it gave me this error message:




Unexpected token "{" at start of expression.



Do you know what is causing that error?




Roger, what Dimitre showed there works in XPath 4.0 where an explicit "map" constructor keyword is optional but in XPath 3.1 you need e.g.

let $aircraft := map {"altitude": map {"units" : "Flight_Level"} }

Current Thread