Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1055

XSD: Allow any condition next to <not>/<and>/<or> - `when-base` within `when`

    XMLWordPrintable

Details

    • Story
    • Resolution: Won't Do
    • Minor
    • None
    • 2.5.0.Final
    • None

    Description

      This is not allowed:

         <when>
                 <not>  <xmlfile public-id=".*JBoss.+DTD Java EE.+5.*"/>  </not>
                 <xmlfile matches="//*[local-name()='jboss-app']" in="jboss-app.xml"/>
      

      The <xmlfile> has to be wrapped in <or> or <and>.

      There's no reason for that wrapping, except for the technical ones - XSD not allowing it, and maybe the implementation.

      See https://github.com/windup/windup/blob/master/config-xml/schema/windup-jboss-ruleset.xsd#L381-L410

      Attachments

        Activity

          People

            Unassigned Unassigned
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: