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

Schematron issues in windows and unix schemas #304

Closed
dragosprisaca opened this issue May 3, 2018 · 2 comments
Closed

Schematron issues in windows and unix schemas #304

dragosprisaca opened this issue May 3, 2018 · 2 comments

Comments

@dragosprisaca
Copy link

The following schematron rules incorrectly fails when the source content includes a value equal to 0:

windows-definitions-schema.xsd:
Element name="force_logoff":
“<sch:assert test="string-length(.) = 0 or number(.) < 0"><sch:value-of select="../@id"/> - the value of force_logoff must be greater than or equal to zero</sch:assert>”

And element name="lockout_duration":
“<sch:assert test="string-length(.) = 0 or number(.) < 0"><sch:value-of select="../@id"/> - the value of lockout_duration must be greater than or equal to zero</sch:assert>”

unix-definitions-schema.xsd:
Element name="group_id":
"<sch:assert test="string-length(.) = 0 or number(.) < 0"><sch:value-of select="../@id"/> - the value of group_id must be greater than zero</sch:assert>"

Element name="user_id":
"<sch:assert test="string-length(.) = 0 or number(.) < 0"><sch:value-of select="../@id"/> - the value of user_id must be greater than zero</sch:assert>"

Thanks,
_Dragos.

@balleman
Copy link

balleman commented May 3, 2018

I believe PR #303 should resolve these issues and the others in #302.

@solind
Copy link
Contributor

solind commented May 3, 2018

I agree, and I'm going to close this issue as a duplicate to #302.

@solind solind closed this as completed May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants