You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of the things I did in XProc 3 I had a p:for-each that could spit out zero or more documents. If it were zero documents I needed some special handling, so I had to write a test for it. That is currently not straightforward. What I finally did was:
In one of the things I did in XProc 3 I had a
p:for-each
that could spit out zero or more documents. If it were zero documents I needed some special handling, so I had to write a test for it. That is currently not straightforward. What I finally did was:That works but feels like a nerdy trick. I would advocate to add a function that returns the number of documents:
p:document-count()
or whatever.Can also be solved by #48.
The text was updated successfully, but these errors were encountered: