XProc 3 Steps as XSpec Test Helper Functions
medium.com·12h

On the XML Calabash 3 Cutting Edge

8 min readJust now

Would you like to integrate custom XProc 3 steps into XSpec test suites that you run using XProc 3? An exciting feature of the XML Calabash processor enables you to do it, by making your XProc steps callable as functions. While revisiting the helper functionality situation from Ignoring Code Comments During XSpec Testing, this topic illustrates how to use an XProc step as a test helper function, as an alternative to using an XSLT stylesheet function or XQuery function.

In fact, the *same *XProc step can serve as a test helper function in both XSpec tests for XSLT and XSpec tests for XQuery.

Ingredients

Here’s what we need to…

Similar Posts

Loading similar posts...