xproc / 3.0-steps

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

Validation step: Option 'mode' on p:validate-with-xml-schema is wrongly defined #512

Closed xml-project closed 2 years ago

xml-project commented 2 years ago

As @ndw pointed out for options in the standard step library , it is an error to declare an option with as="xs:token" and then give restricting values that are strings. This is also done in p:validate-with-xml-schema:

<p:option name="mode" select="'strict'" as="xs:token" values="('strict','lax')"/>

I think the solution from the standard step library also applies here: Remove the type declaration for the option.

xml-project commented 2 years ago

Fixed with #513