Skip to content
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

Should p:if have an impllicit else that does p:identity instead of p:sink #751

Closed
pmasereeuw opened this Issue Feb 8, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@pmasereeuw
Copy link

pmasereeuw commented Feb 8, 2019

After hearing Erik's information about p:if, and before really reading the specs, I would like to remark that my use case for an if-then-else in xproc 1.0 was a p:choose with a p:when changing something and a p:otherwise just doing a p:identify. My feeling is that the new p:if should be defined along these lines instead of just giving an empty result/p:sink in the implied else-part.

@ndw

This comment has been minimized.

Copy link
Contributor

ndw commented Feb 21, 2019

Feb 21 editor's meeting: we concur. There's a little bit of subtlety in spec'ing it wrt default readable ports and such.

@ndw ndw self-assigned this Feb 21, 2019

@ndw

This comment has been minimized.

Copy link
Contributor

ndw commented Feb 21, 2019

It is an error if the p:if does not have a primary output port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.