Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Default value for the "visit-text" parameter #46

Open
octavianN opened this issue May 3, 2017 · 2 comments
Open

Default value for the "visit-text" parameter #46

octavianN opened this issue May 3, 2017 · 2 comments
Labels
enhancement ISO Schematron Related to the ISO standard

Comments

@octavianN
Copy link

In the iso_schematron_skeleton_for_saxon.xsl stylesset the default value for the visit-text parameter is set to false. Therefore, by default you cannot create rules that match text nodes.
The parameter is NON CONFORMANT as the comment from the stylesheet explains:

THIS IS NON CONFORMANT BEHAVIOUR JUST FOR DISCUSSION OF A POSSIBLE CHANGE TO THE
SPECIFICATION. THIS PARAM SHOULD GO IF THE FINAL DECISION IS THAT THE SPEC DOES NOT CHANGE.

I think the default parameter value should be true, to allow matching text nodes.

@AndrewSales
Copy link

The standard says in regard to the query language bindings for XSLT (both 1 & 2) in Annexes C & H (both normative):
"An implementation may
allow the rule context to be text nodes at user option however implementations may reject or fail to
implement schemas which specify text nodes."

Wouldn't that suggest that this implementation is conformant? But I'd agree it's of more use to have a default value of true.

@octavianN
Copy link
Author

Yes, the implementation is conformant with the specification.
I just think that the default value of the parameter should be true.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement ISO Schematron Related to the ISO standard
Projects
None yet
Development

No branches or pull requests

3 participants