From: Omar S. <Oma...@oe...> - 2021-02-18 19:44:15
|
Short answer: for eXist 5.2.0 git c58d04ec45de50e7738489dee072fcc863dc8b1b (that is the docker image from docker hub) the XSL processor is SAXON HE 9.9.1.6 saxonica.com Saxon 9.9 docs say: Saxon 9.9 includes highly conformant implementations of the current W3C Recommendations: XSLT 3.0, XQuery 3.1, XPath 3.1, and XSD 1.1. See Standards Conformance for more details. For various reasons I was asking myself the same question every now and then. I created a RestXq method that prints the answer. Here is a version of this /db/apps/get-runtime/get-runtime.xqm (world readable and executeable): xquery version "3.1"; module namespace api="urn:api"; declare %rest:path("/get-runtime") %rest:GET function api:runtime-info() as item()+ { let $xslt-runtime-info := transform:transform(<_/>, document {<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml"/><xsl:template match='/'><_><product-name><xsl:value-of select="system-property('xsl:product-name')"/></product-name><product-version><xsl:value-of select="system-property('xsl:product-version')"/></product-version></_></xsl:template></xsl:stylesheet>}, ()) return <html xmlns="http://www.w3.org/1999/xhtml"> <title>Runtime info</title> <body> <h1>Runtime info</h1> <table> <tr> <td>{system:get-product-name()}</td> <td>{system:get-version()} git {system:get-revision()}</td> </tr> <tr> <td>{$xslt-runtime-info/*:product-name/text()}</td> <td>{$xslt-runtime-info/*:product-version/text()}</td> </tr> </table> </body> </html> }; Register it (eg. with exrest:register-module(xs:anyURI('/db/apps/get-runtime/get-runtime.xqm')) ) and you can the infos in for example at http://localhost:8080/exist/restxq/get-runtime Am 18.02.2021 um 18:12 schrieb Christian Achter: > Dear all, > > sorry to disturb you with this question, but I couldn't find anything > about this: > > What XSLT version ist running with eXist-db 5.2.0? > > We are currently running scripts of XSLT 2.0 which work fine but need > to switch to scripts of XSLT 3.0. Will that be possible with eXist 5.2? > > Kind regards > Christian Achter > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open -- 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 Wohllebengasse 12-14, 1040 Wien, Österreich | Vienna, Austria T: +43 1 51581-7295 oma...@oe... | www.oeaw.ac.at/acdh |