xproc / 3.0-specification

A community-driven effort to define an XProc 3.0 specification (formerly 1.1)
http://spec.xproc.org/
33 stars 10 forks source link

Clarify that negated content type shortcuts are allowed #1115

Open ndw opened 1 month ago

ndw commented 1 month ago

The current wording of 3.4 Specifying content types suggests that -application/xml is allowed, but -xml is not. That was perhaps the case at one time, but we clearly decided it was okay when we specified p:invisible-xml.

We should clarify that shortcuts can be negated.

We should also consider if there are any additional error conditions we can capture. -any seems pointless. But so does application/xml text/xml -xml. What's not clear on five minutes thought is whether or not it's practical to detect this error statically.