Schematron / schematron

Schematron "skeleton" - XSLT implementation
MIT License
93 stars 45 forks source link

Default value for the "only-child-elements" parameter #45

Open octavianN opened 7 years ago

octavianN commented 7 years ago

In the iso_schematron_skeleton_for_saxon.xsl stylesset the default value for the only-child-elements parameter is set to true if there is a rule context attribute that contains contains ( character. I think the default should be set to false in this case, otherwise if you have a rule with context="comment()" the rule will never be matched. If the only-child-elements="true" the context-xpath variable will be *.

AndrewSales commented 7 years ago

In contrast to #46, this does appear to be an implementation-specific configuration option.