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

Schematron issues in windows and unix schemas #304

@dragosprisaca

Description

@dragosprisaca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions