Menu

#209 Schematron generation code

open
nobody
None
5
2021-06-22
2021-06-22
Mike Ward
No

Schematron generation code plcslib\xsl\generate_sch\plcs_psm_xmi2sch.xsl has a bug.

The following entries are being generated for TaskMethodVersionAssignment and TaskMethodVersionRelationship

<sch:rule context="//TaskMethodVersionAssignment">
<sch:report test="./AssignedTaskMethod&lt;span&gt;[not(klzzwxh:0000Ref=//ActivityMethod[substring-after(klzzwxh:0001:type, ':')='TaskMethodVersion']&lt;/span&gt;/@uid)]">TaskMethodVersionAssignment: AssignedTaskMethod/@uidRef declared for which there is no corresponding ActivityMethod/@xsi:type='TaskMethodVersion' @uid</sch:report>
</sch:rule>

    and

    <sch:rule context="//TaskMethodVersionRelationship">
        <sch:report
            test="./Related[not(@uidRef=//ActivityMethod[substring-after(@xsi:type, ':')='TaskMethodVersion']/@uid)]"
            >TaskMethodVersionRelationship: Related/@uidRef declared for which there is no corresponding ActivityMethod/@xsi:type='TaskMethodVersion' @uid</sch:report>
    </sch:rule>


    These entries should be

   <sch:rule context="//TaskMethodVersionAssignment">
        <sch:report
            test="./AssignedTaskMethod[not(@uidRef=//TaskMethodVersion/@uid)]"
            >TaskMethodVersionAssignment: AssignedTaskMethod/@uidRef declared for which there is no corresponding TaskMethodVersion @uid</sch:report>
    </sch:rule>

    and 
    <sch:rule context="//TaskMethodVersionRelationship">
        <sch:report
            test="./Related[not(@uidRef=//TaskMethodVersion/@uid)]"
            >TaskMethodVersionRelationship: Related/@uidRef declared for which there is no corresponding TaskMethodVersion @uid</sch:report>
    </sch:rule>

    The correct entries will have to be entered manually after a regeneration of the plcslib-svn\trunk\plcslib\data\PLCS\psm_model\plcs_psm.sch schema pending fixes to the XSL generation code.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.