- From: Martin Honnen <martin.honnen@gmx.de>
- Date: Sat, 1 Nov 2025 17:38:28 +0100
- To: xproc-dev@w3.org
- Message-ID: <213e4517-9bd4-49ba-9d0c-5aab5a7b6048@gmx.de>
On 01/11/2025 13:08, John Dziurlaj wrote:
>
> I am trying to call JavaScript using cx:javascript (XmlCalabash), but
> am encountering this error.
>
> `Step failed: javascript evaluation failed or signaled an error.`
>
> My naive example:
>
> <cx:javascript>
>
> <p:with-input port="program">
>
> <p:inline content-type="text/javascript">
>
> console.log("Starting markdown to OSCAL conversion");
>
> </p:inline>
>
> </p:with-input>
>
> </cx:javascript>
>
> I’m sure I’m doing something wrong, but I couldn’t find any usage
> examples.
>
I have never used that feature, as for usage example, there seem to be a
few test cases like
https://www.xmlcalabash.com/test-suites/extra-suite/tests/polyglot-005.html,
https://www.xmlcalabash.com/test-suites/cx-javascript.html. But I
haven't tried to run them, I think you need GraalVM 21. Perhaps you
already do, otherwise you probably wouldn't get that error that
javascript evaluation failed.
Received on Tuesday, 4 November 2025 10:27:12 UTC