willemvlh/saxon-server ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Java server that lets me send XML or JSON over HTTP and run either XSLT or XQuery against it using Saxon.

I want two endpoints, one for transformations and one for queries, plus a simple web page at the root so I can test requests in the browser. It should accept file uploads or raw text in a multipart form, let me attach extra files that the stylesheet or query can read, and support request parameters and output settings like content type, JSON output, and indentation.

Please make it handle XML and JSON cleanly, return helpful error messages when something goes wrong, and use safe defaults so external file, network, and system access are off unless I explicitly enable them. Add a timeout so long running transformations do not hang forever, and support gzip requests and responses. If needed, look up the current Saxon docs online while you implement it.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab