xproc / 3.0-steps

Repository for change requests to the standard step library and for official extension steps
10 stars 7 forks source link

Missing error conditions for p:ixml #547

Closed xml-project closed 2 months ago

xml-project commented 10 months ago

To my reading there are two missing error conditions in p:ixml

  1. Port "grammar" is a sequence port which (according to the prose) can either be empty or provide one document. It is not said what happens if more than one document appears on this port. Proposal: It is a dynamic error if more than one document appears on port "grammar".
  2. The document on port "grammar" may not be a valid ixml grammar. Proposal: It is a dynamic error if the document provided on port "grammar" is not a valid ixml grammar.

Does this make sense? Currently my implementation raises XD0030 (general step error) but I think we should be more precise here, especially in the second case.