|
Subject: Re: [xsl] hashing text in XSLT? From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 8 Oct 2026 17:28:00 -0000 |
On Thu, Oct 08, 2026 at 05:07:37PM +0000, Martin Honnen martin.honnen@xxxxxx scripsit: > On 08/10/2026 18:53, Martin Honnen martin.honnen@xxxxxx wrote: > > I think with commercial editions of Saxon 13 (EE/PE) available for > > oXygen as a plugin there is support for the 4.0 function > > https://qt4cg.org/specifications/xpath-functions-40/Overview.html#func-hash > > > For me with oXygen 28.1 and Saxon EE 13 installed as a plugin it indeed > works to use e.g. > > xquery version '4.0'; hash('XPath 4.0 is great!') > > in the XPath/XQuery builder (with the Saxon EE 13 engine selected): > > <?xml version="1.0" encoding="UTF-8"?>E0A436C140ED7CA474D16450D7226EF4 Oddly, if I remember to change the @version on the XSLT stylesheet to 4 and the engine in the transformation scenarion to Saxon EE 13, hash() works in the XSLT stylesheet I want it for, while in the XPath/XQuery builder, your example does not work. I get told there isn't a 1-argument hash function. Which is a surprise. The example works fine in BaseX, so I'm going to presume there's no syntax issue introduced by a helpful mail transport agent or my ineptitude. I haven't gone and adjusted anything in oXygen about making EE 13 the default for XQuery, which would be my first guess as to why selecting it as the engine for the query isn't efficacious. (oXygen has been restarted.) I am using the latest oXygen 28.1, so hopefully that's not it. But, it works in XSLT, so success! Thank you! -- -- Graydon Saunders | graydonish@xxxxxxxxxxxx \xDE\xE6s ofer\xE9ode, \xF0isses sw\xE1 m\xE6g. -- Deor ("That passed, so may this.")
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] hashing text in XSLT?, Martin Honnen martin | Thread | Re: [xsl] hashing text in XSLT?, Martin Honnen martin |
| Re: [xsl] hashing text in XSLT?, Martin Honnen martin | Date | Re: [xsl] hashing text in XSLT?, Martin Honnen martin |
| Month |