xproc / Vnext

Assembly point for all issues for a next version of XProc
1 stars 0 forks source link

Make sequences more fine-grained #49

Open xatapult opened 5 months ago

xatapult commented 5 months ago

I would advocate for making the definition of sequences more fine-grained. Currently you can only say that some port is either a sequence (0 or more) or not (always 1 document).

I often have situations where I have ports that emit 0 or 1 document. Or always more than one.

So at least the "DTD" distinction would be nice (?, *, +).

We maybe could add this to the sequence attribute of port definitions? Something like sequence="?"