Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@octavianN
Copy link

commented May 3, 2017

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

This comment has been minimized.

Copy link

commented May 3, 2017

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

This comment has been minimized.

Copy link
Author

commented May 3, 2017

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 join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.