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. However, when I run xslt:version(), it returns "2.0" - which implies the system is set up for XSLT 2.0 stylesheets. Is there some other setting somewhere that might need to be updated, to enable the system to run an XSLT 2.0 transform? Thank you, Martin ________________________________ 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.
Hi Martin, BaseX 8.6.7 is pretty old now. Could you please if the behavior can be reproduced with the latest version of BaseX? Thanks in advance, Christian On Wed, Jan 10, 2024 at 6:09 PM Martin Dowling < Martin.Dowling@bloomsbury.com> 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.
However, when I run xslt:version(), it returns “2.0” – which implies the system is set up for XSLT 2.0 stylesheets.
Is there some other setting somewhere that might need to be updated, to enable the system to run an XSLT 2.0 transform?
Thank you,
Martin
------------------------------
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.
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://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
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&c=E,... ________________________________ 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.
Hi, You always had to get the Saxon HE JAR and the xmlresolve JAR yourself to transform XSLT 2.0 and higher and put it in lib/custom. This is using the BaseX ZIP distribution, I don't know where this is when you use setup, I don't use anything but ZIP). By default the XSL transform built into JRE is used and that is Xerces XSLT 1.0 as far as I know. Last I tried you can get any Saxon HE you like even 12.x and it will work with BaseX 8.6.7 Best regards Omar Am 08.02.2024 um 10:50 schrieb Martin Dowling:
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
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
-- Mag. Ing. Omar Siam Austrian Center for Digital Humanities and Cultural Heritage Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences Stellvertretende Behindertenvertrauensperson | Deputy representative for disabled persons Bäckerstraße 13, 1010 Wien, Österreich | Vienna, Austria T: +43 1 51581-7295 omar.siam@oeaw.ac.at |www.oeaw.ac.at/acdh
participants (4)
-
Christian Grün -
Liam R. E. Quin -
Martin Dowling -
Omar Siam