-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline script #6
Comments
I do call some XProc filters to post-process the result in order to make the <p:except type="compare"> simpler to use, especially when some ids have been randomly generated by the script to test. Inline XProc would be useful for this indeed. In the meantime, the <x:call script="..."> can call an XProc step wrapper that includes the filter. |
There should be support for defining your own type of assertions. Check out https://github.com/josteinaj/nordic-epub3-dtbook-migrator/blob/master/nordic-epub3-dtbook-migrator/src/test/xprocspec/epub3-to-dtbook.xprocspec As for unpredictable values, you can test portions of the result but that's Would you like some filtering functionality added to the context element as
|
We're a bit wandering of track now, but anyway, here is another example were custom assertions are used: https://github.com/daisy-consortium/pipeline-mod-braille/blob/master/pipeline-braille-utils/liblouis/liblouis-formatter/src/test/xprocspec/test_format.xprocspec This works great for me. The three dots would be a nice additional feature, although I don't think I would use it. I also have to deal with randomly generated identifiers, but that was not the only reason for creating a special pef:compare step. |
allow <x:script>
<p:declare-step/>
</x:script> as the first child of |
Support defining an XProc script inline in the XProcSpec test. (This is just an idea, I have no actual use case for it yet, but it seems useful.)
The text was updated successfully, but these errors were encountered: