Hi Rory,
BaseX is an _XQuery_ processor. It can call XSL processors usind the xslt module. But is _not_ an XSL processor itself.
Would it be an option for you to use an actual XSL processor for the task?
* XSL 2.0+ Saxon (https://www.saxonica.com/download/download_page.xml). Several language bindings are available nowadays.
* XSL 1.0 xsltproc (https://packages.debian.org/bookworm/xsltproc)
I can assure you this will be easier than getting basex to call an XSL processor for you and present you the results.
If you really want to use BaseX for that task you need to write a minimal XQuery snippet that calls xslt:transform or xslt:transfrom-text.
Am 22.07.2025 um 12:44 schrieb Rory Campbell-Lange:Hi -- beginner here. I've installed basex via apt on Debian. ii basex 10.5-1 all XML database and XPath/XQuery processor I've successfully made and interrogated a database and made a few basic xquery commands from the command line. I'm hoping to use basex for xsl transformations from the command line so that I can work rapidly on iterating towards the transformation I'm trying to achieve. Specifically, I'm aiming to transform an XML document using an XSL document to produce an HTML document. I've tried the following, plus other variants: basex -W -i input.xml -o out.html transform.xsl However the resulting file at out.html is simply the transform.xsl file. I'd be grateful for advice. Many thanks, RoryBest regards
-- 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