Thank you, Liam.
I sorted this out by upgrading the version of the Saxon processor in my /lib/ directory from 9.7 to 9.9.
I did already have xsl:stylesheet/@version = '2.0' in my stylesheet, and BaseX appeared to be set to run XSLT 2.0: running xslt:transform() in the GUI returned a value of "2.0". However, the older Saxon version didn't handle XSLT 2.0 functions.
Regards,
Martin
-----Original Message----- From: Liam R. E. Quin liam@fromoldbooks.org Sent: 08 February 2024 00:20 To: Martin Dowling Martin.Dowling@bloomsbury.com; basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] XSLT version
[CAUTION: This email is from an external source. Exercise caution when opening attachments or clicking links]
On Wed, 2024-01-10 at 17:09 +0000, Martin Dowling wrote:
Hi
I’m trying to run a query in BaseX (version 8.6.7) which calls an XSLT 2.0 stylesheet using xslt:transform(). I’m getting errors that clearly imply the system does not recognise XSLT 2.0 functions, and is expecting an XSLT 1.0 stylesheet.
Did you get sorted out? You need to put a copy of your XSLT processor, e.g. Saxon, in the lib/custom directory, e.g. saxonpe.jar and of course make sure the stylesheet has version="2" on the xsl:stylesheet element.
liam
-- Liam Quin, https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.delightfulcomputing.... Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.fromoldbooks.org&...
________________________________
This email and its contents are confidential and may also be privileged and protected by copyright. If you are not the named recipient please notify the sender immediately, delete the email and all attachments completely from your system and do not use, print, copy, disclose or distribute any part of its contents. Bloomsbury Publishing Plc and its subsidiaries may monitor email traffic. Any views expressed in this email are those of the author, and do not necessarily represent those of Bloomsbury. This email does not conclude a binding agreement. Bloomsbury Publishing Plc 50 Bedford Square, London WC1B 3DP. Company registered in England and Wales company no. 1984336. Bloomsbury Publishing Inc. 1385 Broadway, Fifth floor, New York, 10018. Bloomsbury Publishing Pty Ltd, Level 4, 387 George St, Sydney, NSW 2000. Bloomsbury Publishing India Pvt. Ltd. DDA Complex, LSC , Building No.4, Second Floor, Pocket C-6&7, Vasant Kunj, New Delhi 110070. ABC-CLIO | Bloomsbury, ABC-CLIO is an imprint of Bloomsbury, 147 Castilian Drive, Santa Barbara, CA 93117.